PT-2024-21546 · Linux+9 · Linux Kernel+9

Jorge Mora

·

Published

2024-01-25

·

Updated

2025-09-29

·

CVE-2024-26870

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 versions prior to 6.6.0-61.fc40.aarch64
Description A vulnerability has been resolved in the Linux kernel, specifically in the NFSv4.2 module. The issue arises when the listxattr() function is called with a buffer size of 0, which returns the actual size of the buffer needed for a subsequent call. However, when the size is greater than 0, nfs4 listxattr() does not return an error, causing the nfs4 listxattr nfs4 user() function to trigger a kernel bug. This bug is reproduced when generic listxattr() returns 'system.nfs4 acl', and lisxattr() is called with a size of 16. To fix this issue, a check has been added to nfs4 listxattr() to return an ERANGE error when it is called with a size greater than 0 and the return value is greater than the size.
Recommendations To resolve this issue, update the Linux kernel to a version later than 6.6.0-61.fc40.aarch64. As a temporary workaround, consider disabling the nfs4 listxattr() function until a patch is available. Additionally, restrict access to the vulnerable NFSv4.2 module to minimize the risk of exploitation.

Exploit

Fix

RCE

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

Weakness Enumeration

Related Identifiers

ALSA-2024:5101
ALSA-2024:5102
ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
BDU:2025-03929
CESA-2024_5101
CESA-2024_5102
CVE-2024-26870
DLA-3842-1
DSA-5681-1
INFSA-2024_5101
INFSA-2024_5102
INFSA-2024_9315
OESA-2024-1620
OESA-2024-1621
OESA-2024-1622
RHSA-2024:5065
RHSA-2024:5101
RHSA-2024:5102
RHSA-2024:5255
RHSA-2024:9315
RHSA-2024:9497
RHSA-2024:9498
RHSA-2024:9546
RHSA-2024_5101
RHSA-2024_5102
RHSA-2024_9315
RLSA-2024:5101
RLSA-2024:5102
RXSA-2024:5101
SUSE-SU-2024:2008-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2135-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20249-1
USN-6816-1
USN-6817-1
USN-6817-2
USN-6817-3
USN-6820-1
USN-6820-2
USN-6821-1
USN-6821-2
USN-6821-3
USN-6821-4
USN-6828-1
USN-6871-1
USN-6878-1
USN-6892-1
USN-6919-1

Affected Products

Almalinux
Astra Linux
Centos
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu