btrfs: fix uninitialized pointer free on read_alloc_one_name() error (Linux Linux)

CVE-2024-50087
HIGH 7.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix uninitialized pointer free on read_alloc_one_name() error The function read_alloc_one_name() does not initialize the name field of the passed fscrypt_str struct if kmalloc fails to allocate the corresponding buffer. Thus, it is not guaranteed that fscrypt_str.name is initialized when freeing it. This is a follow-up to the linked patch that fixes the remaining instances of the bug introduced by commit e43eec81c516 ("btrfs: use struct qstr instead of name and namelen pairs").

Weaknesses (CWE)

  • CWE-824 — Access of Uninitialized Pointer

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e < b37de9491f140a0ff125c27dd1050185c3accbc1 ; affected e43eec81c5167b655b72c781b0e75e62a05e415e < 7fc7c47b9ba0cf2d192f2117a64b24881b0b577f ; affected e43eec81c5167b655b72c781b0e75e62a05e415e < 1ec28de5e476913ae51f909660b4447eddb28838 ; affected e43eec81c5167b655b72c781b0e75e62a05e415e < 2ab5e243c2266c841e0f6904fad1514b18eaf510 ; affected 6.1.57 < 6.1.114
Linux · Linuxaffected 6.2 ; unaffected 0 < 6.2 ; unaffected 6.1.114 ≤ 6.1.* ; unaffected 6.6.58 ≤ 6.6.* ; unaffected 6.11.5 ≤ 6.11.* ; unaffected 6.12 ≤ *

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