CVE-2024-50088

btrfs: fix uninitialized pointer free in add_inode_ref()

HIGH
7.8
CVSS Score
Published: October 29, 2024 at 12:50 AM UTC
Updated: August 5, 2026 at 12:05 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix uninitialized pointer free in add_inode_ref() The add_inode_ref() function does not initialize the "name" struct when it is declared. If any of the following calls to "read_one_inode() returns NULL, dir = read_one_inode(root, parent_objectid); if (!dir) { ret = -ENOENT; goto out; } inode = read_one_inode(root, inode_objectid); if (!inode) { ret = -EIO; goto out; } then "name.name" would be freed on "out" before being initialized. out: ... kfree(name.name); This issue was reported by Coverity with CID 1526744.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1.57 ≤ v < 6.1.1146.2 ≤ v < 6.11.56.2 ≤ v < 6.126.2 ≤ v < 6.6.586.7 ≤ v < 6.11.51cf474cd474bc5d3ef63086ffd009a87a5b7bb2e6.1.576.12 rc16.12 rc26.12 rc3e43eec81c5167b655b72c781b0e75e62a05e415e
Vendor states this is fixed in 12cf028381aa19bc38465341512c280256e8d82d (fixed)
Vendor states this is fixed in 66691c6e2f18d2aa4b22ffb624b9bdc97e9979e4 (fixed)
Vendor states this is fixed in a941f3d5b1469c60a7e70e775584f110b47e0d16 (fixed)
Vendor states this is fixed in e11ce03b58743bf1e096c48fcaa7e6f08eb75dfa (fixed)
Vendor states this is fixed in 6.1.114 (unaffected)
Vendor states this is fixed in 6.11.5 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)
Vendor states this is fixed in 6.6.58 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/12cf028381aa19bc38465341512c280256e8d82d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/66691c6e2f18d2aa4b22ffb624b9bdc97e9979e4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a941f3d5b1469c60a7e70e775584f110b47e0d16
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e11ce03b58743bf1e096c48fcaa7e6f08eb75dfa
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-824

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card