# CVE-2023-53204: af\_unix: Fix data-races around user-\>unix\_inflight.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-09-15T14:21:32.696Z
- **Modified:** 2026-11-05T21:17:19.387Z

## Who should check

- Anyone running Linux \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< df97b5ea9f3ac9308c3a633524dab382cd59d9e5; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 03d133dfbcec9d439729cc64706c7eb6d1663a24; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< adcf4e069358cdee8593663650ea447215a1c49e; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< b401d7e485b0a234cf8fe9a6ae99dbcd20863138; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 9151ed4b006125cba7c06c79df504340ea4e9386; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< ac92f239a079678a035c0faad9089354a874aede; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 0bc36c0650b21df36fbec8136add83936eaf0607; a5a6cf8c405e826ff7ed1308dde72560c0ed4854; df87da0783c4492b944badfea9d5c3c56b834697; …
- Anyone running Linux 4.5

## 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 and fixed versions

- Linux: \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< df97b5ea9f3ac9308c3a633524dab382cd59d9e5; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 03d133dfbcec9d439729cc64706c7eb6d1663a24; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< adcf4e069358cdee8593663650ea447215a1c49e; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< b401d7e485b0a234cf8fe9a6ae99dbcd20863138; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 9151ed4b006125cba7c06c79df504340ea4e9386; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< ac92f239a079678a035c0faad9089354a874aede; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 0bc36c0650b21df36fbec8136add83936eaf0607; a5a6cf8c405e826ff7ed1308dde72560c0ed4854; df87da0783c4492b944badfea9d5c3c56b834697; … (cvelist)
- Linux: 4.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53204. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53204.md
Affected: Linux >= 712f4aad406bb1ed67f3f98d04c044191f0ff593, < df97b5ea9f3ac9308c3a633524dab382cd59d9e5; >= 712f4aad406bb1ed67f3f98d04c044191f0ff593, < 03d133dfbcec9d439729cc64706c7eb6d1663a24; >= 712f4aad406bb1ed67f3f98d04c044191f0ff593, < adcf4e069358cdee8593663650ea447215a1c49e; >= 712f4aad406bb1ed67f3f98…
Fixed in: Linux 03d133dfbcec9d439729cc64706c7eb6d1663a24, Linux 9151ed4b006125cba7c06c79df504340ea4e9386, Linux 0bc36c0650b21df36fbec8136add83936eaf0607

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53204 being exploited?

There is no confirmed exploitation: CVE-2023-53204 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53204?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-53204?

Linux \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< df97b5ea9f3ac9308c3a633524dab382cd59d9e5; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 03d133dfbcec9d439729cc64706c7eb6d1663a24; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< adcf4e069358cdee8593663650ea447215a1c49e; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< b401d7e485b0a234cf8fe9a6ae99dbcd20863138; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 9151ed4b006125cba7c06c79df504340ea4e9386; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< ac92f239a079678a035c0faad9089354a874aede; \>= 712f4aad406bb1ed67f3f98d04c044191f0ff593, \< 0bc36c0650b21df36fbec8136add83936eaf0607; a5a6cf8c405e826ff7ed1308dde72560c0ed4854; df87da0783c4492b944badfea9d5c3c56b834697; …; Linux 4.5.

### Is there a fix for CVE-2023-53204?

Yes. Fixed in Linux 03d133dfbcec9d439729cc64706c7eb6d1663a24, Linux 9151ed4b006125cba7c06c79df504340ea4e9386, Linux 0bc36c0650b21df36fbec8136add83936eaf0607. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53204?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/df97b5ea9f3ac9308c3a633524dab382cd59d9e5>
- patch: <https://git.kernel.org/stable/c/03d133dfbcec9d439729cc64706c7eb6d1663a24>
- patch: <https://git.kernel.org/stable/c/adcf4e069358cdee8593663650ea447215a1c49e>
- patch: <https://git.kernel.org/stable/c/b401d7e485b0a234cf8fe9a6ae99dbcd20863138>
- patch: <https://git.kernel.org/stable/c/9151ed4b006125cba7c06c79df504340ea4e9386>
- patch: <https://git.kernel.org/stable/c/b9cdbb38e030fc2fe97fe27b54cbb6b4fbff250f>
- patch: <https://git.kernel.org/stable/c/ac92f239a079678a035c0faad9089354a874aede>
- patch: <https://git.kernel.org/stable/c/0bc36c0650b21df36fbec8136add83936eaf0607>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53204>

HTML: <https://flawdb.com/CVE-2023-53204> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53204>
