PT-2024-36853 · Linux+7 · Linux Kernel+7

Zizhi Wo

·

Published

2024-11-11

·

Updated

2026-01-13

·

CVE-2024-56549

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to a NULL pointer dereference problem in the object->file within the Linux kernel's cachefiles module, specifically in ondemand-mode. The root cause is the inconsistency between the allocated file descriptor and the lifetime of object->file, which is used by the user-space invocation to anon fd. The process that triggers the issue involves a series of function calls, including cachefiles ondemand fd write iter, fscache cookie state machine, cachefiles withdraw cookie, and cachefiles write, leading to a NULL pointer dereference when object->file is accessed after being set to NULL.
Recommendations To resolve this issue, add an additional reference count to the object->file before write or llseek operations, and decrement the reference count after these operations are completed. This ensures that object->file remains valid and accessible throughout the process, preventing the NULL pointer dereference.
Note: Since the affected versions are not explicitly specified, it is crucial to apply this fix to all versions of the Linux kernel that are potentially vulnerable to this issue.

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2025-12647
AZL-55195
BDU:2025-12224
CVE-2024-56549
DLA-4102-1
OESA-2025-1078
OESA-2025-1079
OESA-2025-1080
OESA-2025-1081
OPENSUSE-SU-2025_0117-1
OPENSUSE-SU-2025_0153-1
OPENSUSE-SU-2025_0154-1
OPENSUSE-SU-2025_0201-1
OPENSUSE-SU-2025_0229-1
SUSE-SU-2025:0117-1
SUSE-SU-2025:0153-1
SUSE-SU-2025:0154-1
SUSE-SU-2025:0201-1
SUSE-SU-2025:0201-2
SUSE-SU-2025:0229-1
SUSE-SU-2025:0289-1
SUSE-SU-2025:20165-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20248-1
SUSE-SU-2025:20249-1
SUSE-SU-2025_0201-1
SUSE-SU-2025_0201-2
USN-7276-1
USN-7277-1
USN-7310-1
USN-7449-1
USN-7449-2
USN-7450-1
USN-7451-1
USN-7452-1
USN-7453-1
USN-7468-1
USN-7523-1
USN-7524-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu