PT-2023-9296 · Linux+5 · Linux Kernel+5

Ding Hui

·

Published

2023-06-05

·

Updated

2026-01-12

·

CVE-2023-52885

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.3.0
Description The vulnerability is related to a use-after-free issue in the svc tcp listen data ready() function. This occurs when the listener svc sock is freed, and before invoking svc tcp accept() for the established child sock, there is a window where the newsock retains a freed listener svc sock in sk user data, which is cloned from the parent. If data is received on the newsock during this race window, a use-after-free report will be observed in svc tcp listen data ready(). The issue can be reproduced by running two tasks: while :; do rpc.nfsd 0 ; rpc.nfsd; done and while :; do echo "" | ncat -4 127.0.0.1 2049 ; done.
Recommendations To resolve the issue, apply the fix by doing nothing in svc tcp listen data ready() if the state is not TCP LISTEN, which will avoid dereferencing svsk for all child sockets. Update to a version of the Linux kernel that includes this fix, such as version 6.3.0 or later.

Exploit

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2023-8472
BDU:2024-06074
CVE-2023-52885
LSN-0114-1
OESA-2024-2491
OPENSUSE-SU-2024_2947-1
OPENSUSE-SU-2024_2948-1
OPENSUSE-SU-2025_1422-1
OPENSUSE-SU-2025_1423-1
OPENSUSE-SU-2025_1448-1
RHSA-2024:5066
RHSA-2024:5067
RHSA-2024:5281
SUSE-SU-2024:2892-1
SUSE-SU-2024:2893-1
SUSE-SU-2024:2894-1
SUSE-SU-2024:2901-1
SUSE-SU-2024:2902-1
SUSE-SU-2024:2923-1
SUSE-SU-2024:2929-1
SUSE-SU-2024:2939-1
SUSE-SU-2024:2940-1
SUSE-SU-2024:2947-1
SUSE-SU-2024:2948-1
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2025:1422-1
SUSE-SU-2025:1423-1
SUSE-SU-2025:1448-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1
USN-7685-1
USN-7685-2
USN-7685-3
USN-7685-4
USN-7685-5

Affected Products

Alt Linux
Astra Linux
Linux Kernel
Red Os
Suse
Ubuntu