CVE-2023-53204

af_unix: Fix data-races around user->unix_inflight.

MEDIUM
4.7
CVSS Score
Published: September 15, 2025 at 02:21 PM UTC
Updated: June 17, 2026 at 06:44 AM 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
MEDIUM4.7
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix data-races around user->unix_inflight. user->unix_inflight is changed under spin_lock(unix_gc_lock), but too_many_unix_fds() reads it locklessly. Let's annotate the write/read accesses to user->unix_inflight. BUG: KCSAN: data-race in unix_attach_fds / unix_inflight write to 0xffffffff8546f2d0 of 8 bytes by task 44798 on cpu 1: unix_inflight+0x157/0x180 net/unix/scm.c:66 unix_attach_fds+0x147/0x1e0 net/unix/scm.c:123 unix_scm_to_skb net/unix/af_unix.c:1827 [inline] unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1950 unix_seqpacket_sendmsg net/unix/af_unix.c:2308 [inline] unix_seqpacket_sendmsg+0xba/0x130 net/unix/af_unix.c:2292 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0x148/0x160 net/socket.c:748 ____sys_sendmsg+0x4e4/0x610 net/socket.c:2494 ___sys_sendmsg+0xc6/0x140 net/socket.c:2548 __sys_sendmsg+0x94/0x140 net/socket.c:2577 __do_sys_sendmsg net/socket.c:2586 [inline] __se_sys_sendmsg net/socket.c:2584 [inline] __x64_sys_sendmsg+0x45/0x50 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 read to 0xffffffff8546f2d0 of 8 bytes by task 44814 on cpu 0: too_many_unix_fds net/unix/scm.c:101 [inline] unix_attach_fds+0x54/0x1e0 net/unix/scm.c:110 unix_scm_to_skb net/unix/af_unix.c:1827 [inline] unix_dgram_sendmsg+0x46a/0x14f0 net/unix/af_unix.c:1950 unix_seqpacket_sendmsg net/unix/af_unix.c:2308 [inline] unix_seqpacket_sendmsg+0xba/0x130 net/unix/af_unix.c:2292 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg+0x148/0x160 net/socket.c:748 ____sys_sendmsg+0x4e4/0x610 net/socket.c:2494 ___sys_sendmsg+0xc6/0x140 net/socket.c:2548 __sys_sendmsg+0x94/0x140 net/socket.c:2577 __do_sys_sendmsg net/socket.c:2586 [inline] __se_sys_sendmsg net/socket.c:2584 [inline] __x64_sys_sendmsg+0x45/0x50 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 value changed: 0x000000000000000c -> 0x000000000000000d Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 44814 Comm: systemd-coredum Not tainted 6.4.0-11989-g6843306689af #6 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014

Affected

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

v ≥ 3.10.96v ≥ 3.12.57v ≥ 3.14.60v ≥ 3.18.27v ≥ 3.2.78v ≥ 4.1.17v ≥ 4.3.5v ≥ 4.4.13.10.96 ≤ v < 3.113.12.57 ≤ v < 3.133.14.60 ≤ v < 3.153.18.27 ≤ v < 3.193.2.78 ≤ v < 3.34.1.17 ≤ v < 4.24.15 ≤ v < 4.19.2954.20 ≤ v < 5.4.2574.3.5 ≤ v < 4.44.4.1 ≤ v < 4.14.3264.4.1 ≤ v < 4.54.5 ≤ v < 4.14.3264.5 ≤ v < 4.19.2954.5 ≤ v < 5.10.1954.5 ≤ v < 5.15.1324.5 ≤ v < 5.4.2574.5 ≤ v < 6.1.544.5 ≤ v < 6.5.44.5 ≤ v < 6.65.11 ≤ v < 5.15.1325.16 ≤ v < 6.1.545.5 ≤ v < 5.10.1956.2 ≤ v < 6.5.43.10.963.12.573.14.603.18.273.2.783d024dcef2548028e9f9b7876a544e6e0af001754.1.174.3.54.4.14.55e226f9689d90ad8ab21b4a969ae3058777f0aff712f4aad406bb1ed67f3f98d04c044191f0ff5939b8b611fe0f86f07a4ff4a5f3bcb0ea7ceb7da3ba5a6cf8c405e826ff7ed1308dde72560c0ed4854a5b9e44af8d3edaf49d14a91cc519a9fba439e67aa51d1c24ec3b6605f7cc7ef500c96cd71d7ef90dc6b0ec667f67d4768e72c1b7f1bbc14ea52379cdf87da0783c4492b944badfea9d5c3c56b834697
Vendor states this is fixed in 03d133dfbcec9d439729cc64706c7eb6d1663a24 (fixed)
Vendor states this is fixed in 0bc36c0650b21df36fbec8136add83936eaf0607 (fixed)
Vendor states this is fixed in 9151ed4b006125cba7c06c79df504340ea4e9386 (fixed)
Vendor states this is fixed in ac92f239a079678a035c0faad9089354a874aede (fixed)
Vendor states this is fixed in adcf4e069358cdee8593663650ea447215a1c49e (fixed)
Vendor states this is fixed in b401d7e485b0a234cf8fe9a6ae99dbcd20863138 (fixed)
Vendor states this is fixed in b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f (fixed)
Vendor states this is fixed in df97b5ea9f3ac9308c3a633524dab382cd59d9e5 (fixed)
Affected range stops below 3.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.3, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.14.326 (unaffected)
Vendor states this is fixed in 4.19.295 (unaffected)
Affected range stops below 4.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.4, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.5 (unaffected)
Vendor states this is fixed in 5.10.195 (unaffected)
Vendor states this is fixed in 5.15.132 (unaffected)
Vendor states this is fixed in 5.4.257 (unaffected)
Vendor states this is fixed in 6.1.54 (unaffected)
Vendor states this is fixed in 6.5.4 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/03d133dfbcec9d439729cc64706c7eb6d1663a24
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0bc36c0650b21df36fbec8136add83936eaf0607
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9151ed4b006125cba7c06c79df504340ea4e9386
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac92f239a079678a035c0faad9089354a874aede
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/adcf4e069358cdee8593663650ea447215a1c49e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b401d7e485b0a234cf8fe9a6ae99dbcd20863138
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/df97b5ea9f3ac9308c3a633524dab382cd59d9e5

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-362

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