# CVE-2023-54006: af\_unix: Fix data-race around unix\_tot\_inflight.

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T10:55:40.534Z
- **Modified:** 2026-06-17T06:46:31.470Z

## Who should check

- Anyone running Linux \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 31b46d5e7c4e295bd112960614a66a177a057dca; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 20aa8325464d8905450089eed96ca102a074d853; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< cf29b42766ad4af2ae6a449f583796951551b48d; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< e5edc6e44a882c0458878ab10eaddfe60ac34e57; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 2d8933ca863e252fb09ad0be483255e3dfeb1f54; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< afc284a4a781defbb12b2a40427fae34c3d20e17; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< ade32bd8a738d7497ffe9743c46728db26740f78
- Anyone running Linux 2.6.24

## Description

In the Linux kernel, the following vulnerability has been resolved:

af\_unix: Fix data-race around unix\_tot\_inflight.

unix\_tot\_inflight is changed under spin\_lock(unix\_gc\_lock), but
unix\_release\_sock() reads it locklessly.

Let's use READ\_ONCE() for unix\_tot\_inflight.

Note that the writer side was marked by commit 9d6d7f1cb67c ("af\_unix:
annote lockless accesses to unix\_tot\_inflight & gc\_in\_progress")

BUG: KCSAN: data-race in unix\_inflight / unix\_release\_sock

write (marked) to 0xffffffff871852b8 of 4 bytes by task 123 on cpu 1:
 unix\_inflight+0x130/0x180 net/unix/scm.c:64
 unix\_attach\_fds+0x137/0x1b0 net/unix/scm.c:123
 unix\_scm\_to\_skb net/unix/af\_unix.c:1832 \[inline\]
 unix\_dgram\_sendmsg+0x46a/0x14f0 net/unix/af\_unix.c:1955
 sock\_sendmsg\_nosec net/socket.c:724 \[inline\]
 sock\_sendmsg+0x148/0x160 net/socket.c:747
 \_\_\_\_sys\_sendmsg+0x4e4/0x610 net/socket.c:2493
 \_\_\_sys\_sendmsg+0xc6/0x140 net/socket.c:2547
 \_\_sys\_sendmsg+0x94/0x140 net/socket.c:2576
 \_\_do\_sys\_sendmsg net/socket.c:2585 \[inline\]
 \_\_se\_sys\_sendmsg net/socket.c:2583 \[inline\]
 \_\_x64\_sys\_sendmsg+0x45/0x50 net/socket.c:2583
 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+0x72/0xdc

read to 0xffffffff871852b8 of 4 bytes by task 4891 on cpu 0:
 unix\_release\_sock+0x608/0x910 net/unix/af\_unix.c:671
 unix\_release+0x59/0x80 net/unix/af\_unix.c:1058
 \_\_sock\_release+0x7d/0x170 net/socket.c:653
 sock\_close+0x19/0x30 net/socket.c:1385
 \_\_fput+0x179/0x5e0 fs/file\_table.c:321
 \_\_\_\_fput+0x15/0x20 fs/file\_table.c:349
 task\_work\_run+0x116/0x1a0 kernel/task\_work.c:179
 resume\_user\_mode\_work include/linux/resume\_user\_mode.h:49 \[inline\]
 exit\_to\_user\_mode\_loop kernel/entry/common.c:171 \[inline\]
 exit\_to\_user\_mode\_prepare+0x174/0x180 kernel/entry/common.c:204
 \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:286 \[inline\]
 syscall\_exit\_to\_user\_mode+0x1a/0x30 kernel/entry/common.c:297
 do\_syscall\_64+0x4b/0x90 arch/x86/entry/common.c:86
 entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

value changed: 0x00000000 -\> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4891 Comm: systemd-coredum Not tainted 6.4.0-rc5-01219-gfa0e21fa4443 \#5
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: \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 31b46d5e7c4e295bd112960614a66a177a057dca; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 20aa8325464d8905450089eed96ca102a074d853; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< cf29b42766ad4af2ae6a449f583796951551b48d; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< e5edc6e44a882c0458878ab10eaddfe60ac34e57; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 2d8933ca863e252fb09ad0be483255e3dfeb1f54; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< afc284a4a781defbb12b2a40427fae34c3d20e17; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< ade32bd8a738d7497ffe9743c46728db26740f78 (cvelist)
- Linux: 2.6.24 (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-54006. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54006.md
Affected: Linux >= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, < 31b46d5e7c4e295bd112960614a66a177a057dca; >= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, < 20aa8325464d8905450089eed96ca102a074d853; >= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, < 5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840; >= 9305cfa4443dbfb99faf35c…
Fixed in: Linux 31b46d5e7c4e295bd112960614a66a177a057dca, Linux 20aa8325464d8905450089eed96ca102a074d853, Linux 5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840, Linux 2d8933ca863e252fb09ad0be483255e3dfeb1f54

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-54006 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 31b46d5e7c4e295bd112960614a66a177a057dca; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 20aa8325464d8905450089eed96ca102a074d853; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< cf29b42766ad4af2ae6a449f583796951551b48d; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< e5edc6e44a882c0458878ab10eaddfe60ac34e57; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< 2d8933ca863e252fb09ad0be483255e3dfeb1f54; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< afc284a4a781defbb12b2a40427fae34c3d20e17; \>= 9305cfa4443dbfb99faf35c5603ec0c0e91b5ef8, \< ade32bd8a738d7497ffe9743c46728db26740f78; Linux 2.6.24.

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

Yes. Fixed in Linux 31b46d5e7c4e295bd112960614a66a177a057dca, Linux 20aa8325464d8905450089eed96ca102a074d853, Linux 5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840, Linux 2d8933ca863e252fb09ad0be483255e3dfeb1f54. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/31b46d5e7c4e295bd112960614a66a177a057dca>
- other: <https://git.kernel.org/stable/c/20aa8325464d8905450089eed96ca102a074d853>
- other: <https://git.kernel.org/stable/c/5d91b7891f4a9a9d69d75e9f44ab4bf1f3b11840>
- other: <https://git.kernel.org/stable/c/cf29b42766ad4af2ae6a449f583796951551b48d>
- other: <https://git.kernel.org/stable/c/e5edc6e44a882c0458878ab10eaddfe60ac34e57>
- other: <https://git.kernel.org/stable/c/2d8933ca863e252fb09ad0be483255e3dfeb1f54>
- other: <https://git.kernel.org/stable/c/afc284a4a781defbb12b2a40427fae34c3d20e17>
- other: <https://git.kernel.org/stable/c/ade32bd8a738d7497ffe9743c46728db26740f78>

## 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-54006>

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