# CVE-2024-26780: af\_unix: Fix task hung while purging oob\_skb in GC.

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2024-04-04T08:20:15.120Z
- **Modified:** 2026-06-17T07:18:19.680Z

## Who should check

- Anyone running Linux \>= 4fe505c63aa3273135a57597fda761e9aecc7668, \< 36f7371de977f805750748e80279be7e370df85c; \>= e0e09186d8821ad59806115d347ea32efa43ca4b, \< 2a3d40b4025fcfe51b04924979f1653993b17669; \>= b74aa9ce13d02b7fd37c5325b99854f91b9b4276, \< 69e0f04460f4037e01e29f0d9675544f62aafca3; \>= 82ae47c5c3a6b27fdc0f9e83c1499cb439c56140, \< cb8890318dde26fc89c6ea67d6e9070ab50b6e91; \>= 1279f9d9dec2d7462823a18c29ad61359e0a007d, \< 25236c91b5ab4a26a56ba2e79b8060cf4e047839
- Anyone running Linux \>= 6.1.78, \< 6.1.81; \>= 6.6.17, \< 6.6.21; \>= 6.7.5, \< 6.7.9

## Description

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

af\_unix: Fix task hung while purging oob\_skb in GC.

syzbot reported a task hung; at the same time, GC was looping infinitely
in list\_for\_each\_entry\_safe() for OOB skb.  \[0\]

syzbot demonstrated that the list\_for\_each\_entry\_safe() was not actually
safe in this case.

A single skb could have references for multiple sockets.  If we free such
a skb in the list\_for\_each\_entry\_safe(), the current and next sockets could
be unlinked in a single iteration.

unix\_notinflight() uses list\_del\_init() to unlink the socket, so the
prefetched next socket forms a loop itself and list\_for\_each\_entry\_safe()
never stops.

Here, we must use while() and make sure we always fetch the first socket.

\[0\]:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5065 Comm: syz-executor236 Not tainted 6.8.0-rc3-syzkaller-00136-g1f719a2f3fa6 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:preempt\_count arch/x86/include/asm/preempt.h:26 \[inline\]
RIP: 0010:check\_kcov\_mode kernel/kcov.c:173 \[inline\]
RIP: 0010:\_\_sanitizer\_cov\_trace\_pc+0xd/0x60 kernel/kcov.c:207
Code: cc cc cc cc 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 14 25 40 c2 03 00 \<65\> 8b 05 b4 7c 78 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74
RSP: 0018:ffffc900033efa58 EFLAGS: 00000283
RAX: ffff88807b077800 RBX: ffff88807b077800 RCX: 1ffffffff27b1189
RDX: ffff88802a5a3b80 RSI: ffffffff8968488d RDI: ffff88807b077f70
RBP: ffffc900033efbb0 R08: 0000000000000001 R09: fffffbfff27a900c
R10: ffffffff93d48067 R11: ffffffff8ae000eb R12: ffff88807b077800
R13: dffffc0000000000 R14: ffff88807b077e40 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564f4fc1e3a8 CR3: 000000000d57a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<NMI\>
 \</NMI\>
 \<TASK\>
 unix\_gc+0x563/0x13b0 net/unix/garbage.c:319
 unix\_release\_sock+0xa93/0xf80 net/unix/af\_unix.c:683
 unix\_release+0x91/0xf0 net/unix/af\_unix.c:1064
 \_\_sock\_release+0xb0/0x270 net/socket.c:659
 sock\_close+0x1c/0x30 net/socket.c:1421
 \_\_fput+0x270/0xb80 fs/file\_table.c:376
 task\_work\_run+0x14f/0x250 kernel/task\_work.c:180
 exit\_task\_work include/linux/task\_work.h:38 \[inline\]
 do\_exit+0xa8a/0x2ad0 kernel/exit.c:871
 do\_group\_exit+0xd4/0x2a0 kernel/exit.c:1020
 \_\_do\_sys\_exit\_group kernel/exit.c:1031 \[inline\]
 \_\_se\_sys\_exit\_group kernel/exit.c:1029 \[inline\]
 \_\_x64\_sys\_exit\_group+0x3e/0x50 kernel/exit.c:1029
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xd5/0x270 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x6f/0x77
RIP: 0033:0x7f9d6cbdac09
Code: Unable to access opcode bytes at 0x7f9d6cbdabdf.
RSP: 002b:00007fff5952feb8 EFLAGS: 00000246 ORIG\_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9d6cbdac09
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007f9d6cc552b0 R08: ffffffffffffffb8 R09: 0000000000000006
R10: 0000000000000006 R11: 0000000000000246 R12: 00007f9d6cc552b0
R13: 0000000000000000 R14: 00007f9d6cc55d00 R15: 00007f9d6cbabe70
 \</TASK\>

## Affected and fixed versions

- Linux: \>= 4fe505c63aa3273135a57597fda761e9aecc7668, \< 36f7371de977f805750748e80279be7e370df85c; \>= e0e09186d8821ad59806115d347ea32efa43ca4b, \< 2a3d40b4025fcfe51b04924979f1653993b17669; \>= b74aa9ce13d02b7fd37c5325b99854f91b9b4276, \< 69e0f04460f4037e01e29f0d9675544f62aafca3; \>= 82ae47c5c3a6b27fdc0f9e83c1499cb439c56140, \< cb8890318dde26fc89c6ea67d6e9070ab50b6e91; \>= 1279f9d9dec2d7462823a18c29ad61359e0a007d, \< 25236c91b5ab4a26a56ba2e79b8060cf4e047839 (cvelist)
- Linux: \>= 6.1.78, \< 6.1.81; \>= 6.6.17, \< 6.6.21; \>= 6.7.5, \< 6.7.9 (cvelist)

## Mitigation

- Upgrade Linux to 25236c91b5ab4a26a56ba2e79b8060cf4e047839 or later.
- Upgrade Linux to 6.7.9 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-26780. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26780.md
Affected: Linux >= 4fe505c63aa3273135a57597fda761e9aecc7668, < 36f7371de977f805750748e80279be7e370df85c; >= e0e09186d8821ad59806115d347ea32efa43ca4b, < 2a3d40b4025fcfe51b04924979f1653993b17669; >= b74aa9ce13d02b7fd37c5325b99854f91b9b4276, < 69e0f04460f4037e01e29f0d9675544f62aafca3; >= 82ae47c5c3a6b27fdc0f9e8…
Fixed in: Linux 36f7371de977f805750748e80279be7e370df85c, Linux 2a3d40b4025fcfe51b04924979f1653993b17669, Linux 69e0f04460f4037e01e29f0d9675544f62aafca3, Linux 25236c91b5ab4a26a56ba2e79b8060cf4e047839, Linux 6.1.81, Linux 6.6.21, Linux 6.7.9

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

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

### How serious is CVE-2024-26780?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 4fe505c63aa3273135a57597fda761e9aecc7668, \< 36f7371de977f805750748e80279be7e370df85c; \>= e0e09186d8821ad59806115d347ea32efa43ca4b, \< 2a3d40b4025fcfe51b04924979f1653993b17669; \>= b74aa9ce13d02b7fd37c5325b99854f91b9b4276, \< 69e0f04460f4037e01e29f0d9675544f62aafca3; \>= 82ae47c5c3a6b27fdc0f9e83c1499cb439c56140, \< cb8890318dde26fc89c6ea67d6e9070ab50b6e91; \>= 1279f9d9dec2d7462823a18c29ad61359e0a007d, \< 25236c91b5ab4a26a56ba2e79b8060cf4e047839; Linux \>= 6.1.78, \< 6.1.81; \>= 6.6.17, \< 6.6.21; \>= 6.7.5, \< 6.7.9.

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

Yes. Fixed in Linux 36f7371de977f805750748e80279be7e370df85c, Linux 2a3d40b4025fcfe51b04924979f1653993b17669, Linux 69e0f04460f4037e01e29f0d9675544f62aafca3, Linux 25236c91b5ab4a26a56ba2e79b8060cf4e047839, Linux 6.1.81, Linux 6.6.21, Linux 6.7.9. Upgrade Linux to 25236c91b5ab4a26a56ba2e79b8060cf4e047839 or later. Upgrade Linux to 6.7.9 or later.

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

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/36f7371de977f805750748e80279be7e370df85c>
- patch: <https://git.kernel.org/stable/c/2a3d40b4025fcfe51b04924979f1653993b17669>
- patch: <https://git.kernel.org/stable/c/69e0f04460f4037e01e29f0d9675544f62aafca3>
- patch: <https://git.kernel.org/stable/c/cb8890318dde26fc89c6ea67d6e9070ab50b6e91>
- patch: <https://git.kernel.org/stable/c/25236c91b5ab4a26a56ba2e79b8060cf4e047839>

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

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