CVE-2024-41077

null_blk: fix validation of block size

State
Published
Severity
Not scored
Published
Jul 29, 2024
Updated
May 11, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

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]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cedcafad8277b3a07e90bf2f68fff5c6b28a183e to before 9625afe1dd4a158a14bb50f81af9e2dac634c0b1Affected
  • cedcafad8277b3a07e90bf2f68fff5c6b28a183e to before 9b873bdaae64bddade9d8c6df23c8a31948d47d0Affected
  • cedcafad8277b3a07e90bf2f68fff5c6b28a183e to before 2772ed2fc075eef7df3789906fc9dae01e4e132eAffected
  • cedcafad8277b3a07e90bf2f68fff5c6b28a183e to before 08f03186b96e25e3154916a2e70732557c770ea7Affected
  • cedcafad8277b3a07e90bf2f68fff5c6b28a183e to before f92409a9da02f27d05d713bff5f865e386cef9b3Affected
  • cedcafad8277b3a07e90bf2f68fff5c6b28a183e to before c462ecd659b5fce731f1d592285832fd6ad54053Affected
LinuxLinux
  • 4.14Affected
  • before 4.14Not affected
  • 5.10.223 through 5.10.*Not affected
  • 5.15.164 through 5.15.*Not affected
  • 6.1.101 through 6.1.*Not affected
  • 6.6.42 through 6.6.*Not affected
  • 6.9.11 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.