{"id":"CVE-2024-41077","summary":"null_blk: fix validation of block size","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnull_blk: fix validation of block size\n\nBlock size should be between 512 and PAGE_SIZE and be a power of 2. The current\ncheck does not validate this, so update the check.\n\nWithout this patch, null_blk would Oops due to a null pointer deref when\nloaded with bs=1536 [1].\n\n\n[axboe: remove unnecessary braces and != 0 check]","modified":"2026-04-02T12:17:25.323169Z","published":"2024-07-29T14:57:36.680Z","related":["MGASA-2024-0277","MGASA-2024-0278","SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41077.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/08f03186b96e25e3154916a2e70732557c770ea7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2772ed2fc075eef7df3789906fc9dae01e4e132e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9625afe1dd4a158a14bb50f81af9e2dac634c0b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b873bdaae64bddade9d8c6df23c8a31948d47d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c462ecd659b5fce731f1d592285832fd6ad54053"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f92409a9da02f27d05d713bff5f865e386cef9b3"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41077.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41077"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cedcafad8277b3a07e90bf2f68fff5c6b28a183e"},{"fixed":"9625afe1dd4a158a14bb50f81af9e2dac634c0b1"},{"fixed":"9b873bdaae64bddade9d8c6df23c8a31948d47d0"},{"fixed":"2772ed2fc075eef7df3789906fc9dae01e4e132e"},{"fixed":"08f03186b96e25e3154916a2e70732557c770ea7"},{"fixed":"f92409a9da02f27d05d713bff5f865e386cef9b3"},{"fixed":"c462ecd659b5fce731f1d592285832fd6ad54053"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41077.json"}}],"schema_version":"1.7.5"}