# CVE-2024-26923: af\_unix: Fix garbage collector racing against connect()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2024-04-24T21:49:22.001Z
- **Modified:** 2026-11-03T22:17:16.107Z

## Who should check

- Anyone running Linux \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< a36ae0ec2353015f0f6762e59f4c2dbc0c906423; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 343c5372d5e17b306db5f8f3c895539b06e3177f; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 2e2a03787f4f0abc0072350654ab0ef3324d9db3; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< e76c2678228f6aec74b305ae30c9374cc2f28a51; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< b75722be422c276b699200de90527d01c602ea7c; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 507cc232ffe53a352847893f8177d276c3b532a9; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< dbdf7bec5c920200077d693193f989cb1513f009; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 47d8ac011fe1c9251070e1bd64cb10b48193ec51
- Anyone running Linux 2.6.23

## Description

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

af\_unix: Fix garbage collector racing against connect()

Garbage collector does not take into account the risk of embryo getting
enqueued during the garbage collection. If such embryo has a peer that
carries SCM\_RIGHTS, two consecutive passes of scan\_children() may see a
different set of children. Leading to an incorrectly elevated inflight
count, and then a dangling pointer within the gc\_inflight\_list.

sockets are AF\_UNIX/SOCK\_STREAM
S is an unconnected socket
L is a listening in-flight socket bound to addr, not in fdtable
V's fd will be passed via sendmsg(), gets inflight count bumped

connect(S, addr)	sendmsg(S, \[V\]); close(V)	\_\_unix\_gc()
----------------	-------------------------	-----------

NS = unix\_create1()
skb1 = sock\_wmalloc(NS)
L = unix\_find\_other(addr)
unix\_state\_lock(L)
unix\_peer(S) = NS
			// V count=1 inflight=0

 			NS = unix\_peer(S)
 			skb2 = sock\_alloc()
			skb\_queue\_tail(NS, skb2\[V\])

			// V became in-flight
			// V count=2 inflight=1

			close(V)

			// V count=1 inflight=1
			// GC candidate condition met

						for u in gc\_inflight\_list:
						  if (total\_refs == inflight\_refs)
						    add u to gc\_candidates

						// gc\_candidates={L, V}

						for u in gc\_candidates:
						  scan\_children(u, dec\_inflight)

						// embryo (skb1) was not
						// reachable from L yet, so V's
						// inflight remains unchanged
\_\_skb\_queue\_tail(L, skb1)
unix\_state\_unlock(L)
						for u in gc\_candidates:
						  if (u.inflight)
						    scan\_children(u, inc\_inflight\_move\_tail)

						// V count=1 inflight=2 (!)

If there is a GC-candidate listening socket, lock/unlock its state. This
makes GC wait until the end of any ongoing connect() to that socket. After
flipping the lock, a possibly SCM-laden embryo is already enqueued. And if
there is another embryo coming, it can not possibly carry SCM\_RIGHTS. At
this point, unix\_inflight() can not happen because unix\_gc\_lock is already
taken. Inflight graph remains unaffected.

## Affected and fixed versions

- Linux: \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< a36ae0ec2353015f0f6762e59f4c2dbc0c906423; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 343c5372d5e17b306db5f8f3c895539b06e3177f; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 2e2a03787f4f0abc0072350654ab0ef3324d9db3; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< e76c2678228f6aec74b305ae30c9374cc2f28a51; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< b75722be422c276b699200de90527d01c602ea7c; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 507cc232ffe53a352847893f8177d276c3b532a9; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< dbdf7bec5c920200077d693193f989cb1513f009; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 47d8ac011fe1c9251070e1bd64cb10b48193ec51 (cvelist)
- Linux: 2.6.23 (cvelist)

## Mitigation

- Upgrade Linux to 47d8ac011fe1c9251070e1bd64cb10b48193ec51 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26923.md
Affected: Linux >= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, < a36ae0ec2353015f0f6762e59f4c2dbc0c906423; >= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, < 343c5372d5e17b306db5f8f3c895539b06e3177f; >= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, < 2e2a03787f4f0abc0072350654ab0ef3324d9db3; >= 1fd05ba5a2f2aa8e7b9b52e…
Fixed in: Linux 343c5372d5e17b306db5f8f3c895539b06e3177f, Linux 2e2a03787f4f0abc0072350654ab0ef3324d9db3, Linux 507cc232ffe53a352847893f8177d276c3b532a9, Linux 47d8ac011fe1c9251070e1bd64cb10b48193ec51

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-2024-26923 being exploited?

There is no confirmed exploitation: CVE-2024-26923 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-2024-26923?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26923?

Linux \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< a36ae0ec2353015f0f6762e59f4c2dbc0c906423; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 343c5372d5e17b306db5f8f3c895539b06e3177f; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 2e2a03787f4f0abc0072350654ab0ef3324d9db3; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< e76c2678228f6aec74b305ae30c9374cc2f28a51; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< b75722be422c276b699200de90527d01c602ea7c; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 507cc232ffe53a352847893f8177d276c3b532a9; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< dbdf7bec5c920200077d693193f989cb1513f009; \>= 1fd05ba5a2f2aa8e7b9b52ef55df850e2e7d54c9, \< 47d8ac011fe1c9251070e1bd64cb10b48193ec51; Linux 2.6.23.

### Is there a fix for CVE-2024-26923?

Yes. Fixed in Linux 343c5372d5e17b306db5f8f3c895539b06e3177f, Linux 2e2a03787f4f0abc0072350654ab0ef3324d9db3, Linux 507cc232ffe53a352847893f8177d276c3b532a9, Linux 47d8ac011fe1c9251070e1bd64cb10b48193ec51. Upgrade Linux to 47d8ac011fe1c9251070e1bd64cb10b48193ec51 or later.

### How do I check if I'm affected by CVE-2024-26923?

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/a36ae0ec2353015f0f6762e59f4c2dbc0c906423>
- patch: <https://git.kernel.org/stable/c/343c5372d5e17b306db5f8f3c895539b06e3177f>
- patch: <https://git.kernel.org/stable/c/2e2a03787f4f0abc0072350654ab0ef3324d9db3>
- patch: <https://git.kernel.org/stable/c/e76c2678228f6aec74b305ae30c9374cc2f28a51>
- patch: <https://git.kernel.org/stable/c/b75722be422c276b699200de90527d01c602ea7c>
- patch: <https://git.kernel.org/stable/c/507cc232ffe53a352847893f8177d276c3b532a9>
- patch: <https://git.kernel.org/stable/c/dbdf7bec5c920200077d693193f989cb1513f009>
- patch: <https://git.kernel.org/stable/c/47d8ac011fe1c9251070e1bd64cb10b48193ec51>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>

## 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-2024-26923>

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