null_blk: fix validation of block size (Linux Linux)

CVE-2024-41077
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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]

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected cedcafad8277b3a07e90bf2f68fff5c6b28a183e < 9625afe1dd4a158a14bb50f81af9e2dac634c0b1 ; affected cedcafad8277b3a07e90bf2f68fff5c6b28a183e < 9b873bdaae64bddade9d8c6df23c8a31948d47d0 ; affected cedcafad8277b3a07e90bf2f68fff5c6b28a183e < 2772ed2fc075eef7df3789906fc9dae01e4e132e ; affected cedcafad8277b3a07e90bf2f68fff5c6b28a183e < 08f03186b96e25e3154916a2e70732557c770ea7 ; affected cedcafad8277b3a07e90bf2f68fff5c6b28a183e < f92409a9da02f27d05d713bff5f865e386cef9b3 ; affected cedcafad8277b3a07e90bf2f68fff5c6b28a183e < c462ecd659b5fce731f1d592285832fd6ad54053
Linux · Linuxaffected 4.14 ; unaffected 0 < 4.14 ; unaffected 5.10.223 ≤ 5.10.* ; unaffected 5.15.164 ≤ 5.15.* ; unaffected 6.1.101 ≤ 6.1.* ; unaffected 6.6.42 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD