xattr: switch to CLASS(fd) (Linux Linux)

CVE-2024-14027
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: fs/xattr: missing fdput() in fremovexattr error path In the Linux kernel, the fremovexattr() syscall calls fdget() to acquire a file reference but returns early without calling fdput() when strncpy_from_user() fails on the name argument. In multi-threaded processes where fdget() takes the slow path, this permanently leaks one file reference per call, pinning the struct file and associated kernel objects in memory. An unprivileged local user can exploit this to cause kernel memory exhaustion. The issue was inadvertently fixed by commit a71874379ec8 ("xattr: switch to CLASS(fd)").

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

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 c03185f4a23e7f89d84c9981091770e876e64480 < 9a3a2ae5efbbcaed37551218abed94e23c537157 ; affected c3a5e3e872f3688ae0dc57bb78ca633921d96a91 < d151b94967c8247005435b63fc60f8f4baa320da ; affected c3a5e3e872f3688ae0dc57bb78ca633921d96a91 < a71874379ec8c6e788a61d71b3ad014a8d9a5c08 ; affected 8d5863cb33aa424fc27115ee945ad6b96ae2facb ; affected 6.6.51 < 6.6.133 ; affected 6.10.10 < 6.11
Linux · Linuxaffected 6.11 ; unaffected 0 < 6.11 ; unaffected 6.6.133 ≤ 6.6.* ; unaffected 6.12.77 ≤ 6.12.* ; unaffected 6.13 ≤ *

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