# CVE-2024-41077: null_blk: fix validation of block size

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-29T14:57:36.680Z
- Modified: 2026-06-17T07:47:13.963Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

null_blk: fix validation of block size

Block size should be between 512 and PAGE_SIZE and be a power of 2. The current
check does not validate this, so update the check.

Without this patch, null_blk would Oops due to a null pointer deref when
loaded with bs=1536 [1].


[axboe: remove unnecessary braces and != 0 check]

(As written by CVE List.)

## Affected

- Linux Linux: from cedcafad8277b3a07e90bf2f68fff5c6b28a183e before 9625afe1dd4a158a14bb50f81af9e2dac634c0b1; from cedcafad8277b3a07e90bf2f68fff5c6b28a183e before 9b873bdaae64bddade9d8c6df23c8a31948d47d0; from cedcafad8277b3a07e90bf2f68fff5c6b28a183e before 2772ed2fc075eef7df3789906fc9dae01e4e132e; from cedcafad8277b3a07e90bf2f68fff5c6b28a183e before 08f03186b96e25e3154916a2e70732557c770ea7; from cedcafad8277b3a07e90bf2f68fff5c6b28a183e before f92409a9da02f27d05d713bff5f865e386cef9b3; from cedcafad8277b3a07e90bf2f68fff5c6b28a183e before c462ecd659b5fce731f1d592285832fd6ad54053; 4.14 (not affected: before 4.14; from 5.10.223 up to 5.10.*; from 5.15.164 up to 5.15.*; from 6.1.101 up to 6.1.*; from 6.6.42 up to 6.6.*; from 6.9.11 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 5.10.223; from 5.11 before 5.15.164; from 5.16 before 6.1.101; from 6.2 before 6.6.42; from 6.7 before 6.9.11; 6.10

## References

- <https://git.kernel.org/stable/c/9625afe1dd4a158a14bb50f81af9e2dac634c0b1> (patch)
- <https://git.kernel.org/stable/c/9b873bdaae64bddade9d8c6df23c8a31948d47d0> (patch)
- <https://git.kernel.org/stable/c/2772ed2fc075eef7df3789906fc9dae01e4e132e> (patch)
- <https://git.kernel.org/stable/c/08f03186b96e25e3154916a2e70732557c770ea7> (patch)
- <https://git.kernel.org/stable/c/f92409a9da02f27d05d713bff5f865e386cef9b3> (patch)
- <https://git.kernel.org/stable/c/c462ecd659b5fce731f1d592285832fd6ad54053> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-41077](https://www.cve.org/CVERecord?id=CVE-2024-41077), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-41077](https://nvd.nist.gov/vuln/detail/CVE-2024-41077), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41077 · Whole record: https://cve.day/CVE-2024-41077.json · Rebuilt by cve.day 2026-11-25T22:58:43.318Z
