CVE-2024-56549

cachefiles: Fix NULL pointer dereference in object->file

MEDIUM
5.5
CVSS Score
Published: December 27, 2024 at 02:11 PM UTC
Updated: October 15, 2026 at 10:18 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
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: cachefiles: Fix NULL pointer dereference in object->file At present, the object->file has the NULL pointer dereference problem in ondemand-mode. The root cause is that the allocated fd and object->file lifetime are inconsistent, and the user-space invocation to anon_fd uses object->file. Following is the process that triggers the issue: [write fd] [umount] cachefiles_ondemand_fd_write_iter fscache_cookie_state_machine cachefiles_withdraw_cookie if (!file) return -ENOBUFS cachefiles_clean_up_object cachefiles_unmark_inode_in_use fput(object->file) object->file = NULL // file NULL pointer dereference! __cachefiles_write(..., file, ...) Fix this issue by add an additional reference count to the object->file before write/llseek, and decrement after it finished.

Affected

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

All versions5.19 ≤ v < 6.11.116.12 ≤ v < 6.12.25.19c8383054506c77b814489c09877b5db83fd4abf2
Vendor states this is fixed in 31ad74b20227ce6b40910ff78b1c604e42975cf1 (fixed)
Vendor states this is fixed in 785408bbafcfa24c9fc5b251f03fd0780ce182bd (fixed)
Vendor states this is fixed in 9582c7664103c9043e80a78f5c382aa6bdd67418 (fixed)
Vendor states this is fixed in d6bba3ece960129a553d4b16f1b00c884dc0993a (fixed)
Vendor states this is fixed in f98770440c9bc468e2fd878212ec9526dbe08293 (fixed)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 6.1.129 (unaffected)
Vendor states this is fixed in 6.11.11 (unaffected)
Vendor states this is fixed in 6.12.2 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.78 (unaffected)

References (6)

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

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

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

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