PT-2024-3384 · Linux+8 · Linux Kernel+8

Published

2024-01-24

·

Updated

2025-12-23

·

CVE-2024-26629

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 vulnerability in the Linux kernel's nfsd module, specifically in the nfsd4 release lockowner() function. The test on so count can transiently return a false positive, resulting in a return of NFS4ERR LOCKS HELD when in fact no locks are held. This is a protocol violation and can cause incorrect behavior with the Linux NFS client. If RELEASE LOCKOWNER is sent while another thread is still processing a LOCK request that failed due to a conflicting lock, the nfsd thread can hold a reference to the lock owner, causing nfsd4 release lockowner() to return an incorrect error. The Linux NFS client ignores this error because it never sends NFS4 RELEASE LOCKOWNER without first releasing any locks. However, when it reuses a lock owner identifier for which a previous RELEASE failed, it will use a lock seqid of zero, but the server will expect a larger lock seqid and respond with NFS4ERR BAD SEQID. The patch changes check for locks() to use find any file locked() to avoid taking a reference on the nfs4 file and never calling nfsd file put(), thus never sleeping.
Recommendations: At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Improper Locking

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

Weakness Enumeration

Related Identifiers

ALSA-2024:6567
ALSA-2025_16880
BDU:2024-03656
CVE-2024-26629
DSA-5658-1
DSA-5730-1
INFSA-2024_6567
OPENSUSE-SU-2024_1322-1
OPENSUSE-SU-2024_1322-2
OPENSUSE-SU-2024_1332-1
OPENSUSE-SU-2024_1332-2
OPENSUSE-SU-2024_1466-1
OPENSUSE-SU-2024_1480-1
OPENSUSE-SU-2024_1490-1
RHSA-2024:6567
RHSA-2024_6567
RLSA-2024:6567
RXSA-2024:6567
SUSE-SU-2024:1466-1
SUSE-SU-2024:1480-1
SUSE-SU-2024:1490-1
USN-6765-1
USN-6818-1
USN-6818-2
USN-6818-3
USN-6818-4
USN-6819-1
USN-6819-2
USN-6819-3
USN-6819-4
USN-6898-1
USN-6898-2
USN-6898-3
USN-6898-4
USN-6917-1
USN-6919-1
USN-6927-1
USN-7019-1

Affected Products

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