bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent (Linux Linux)

CVE-2023-53681
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.15 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent In some specific situations, the return value of __bch_btree_node_alloc may be NULL. This may lead to a potential NULL pointer dereference in caller function like a calling chain : btree_split->bch_btree_node_alloc->__bch_btree_node_alloc. Fix it by initializing the return value in __bch_btree_node_alloc.

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 cafe563591446cf80bfbc2fe3bc72a2e36cf1060 < 587b4e8bb5dac682f09280ab35db4632b29d5ac4 ; affected cafe563591446cf80bfbc2fe3bc72a2e36cf1060 < b070f29a61436f6f8a2e3abc7ea4f4be81695198 ; affected cafe563591446cf80bfbc2fe3bc72a2e36cf1060 < a4405f6ee03323410d7b10966fd67b35f71b1944 ; affected cafe563591446cf80bfbc2fe3bc72a2e36cf1060 < f67b0e3081f2a24170280a33ac66f6b112083c03 ; affected cafe563591446cf80bfbc2fe3bc72a2e36cf1060 < 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f ; affected cafe563591446cf80bfbc2fe3bc72a2e36cf1060 < 4514847aee18d9391a0cf3aad75d3567c72795a4
Linux · Linuxaffected 3.10 ; unaffected 0 < 3.10 ; unaffected 4.19.291 ≤ 4.19.* ; unaffected 5.4.253 ≤ 5.4.* ; unaffected 5.10.188 ≤ 5.10.* ; unaffected 5.15.121 ≤ 5.15.*

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