# CVE-2026-98646: tcp: Skip cond\_resched() in inet\_csk\_listen\_stop() under BPF context

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:20:17.490Z
- **Modified:** 2026-10-19T10:19:28.983Z

## Who should check

- Anyone running Linux \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 23da88d1597ee7fdda373e1530284b763710911f; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 5b52417c6196e05618a3b5d9753dbed9adef0166; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 55bbebf2829c3f47c5a48fc261740301d0f25f48; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< ee7246bccb9da66076dd8094daa48bdc761d6b76; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< eaab8cab451b9502ce224cd202550375b894a467
- Anyone running Linux 6.5

## Description

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

tcp: Skip cond\_resched() in inet\_csk\_listen\_stop() under BPF context

bpf\_sock\_destroy() runs from the tcp iterator, under rcu\_read\_lock(). If
the sock is a listener that still has children in its accept queue,
tcp\_abort() ends up in inet\_csk\_listen\_stop() and the cond\_resched()
there trips the debug check:

BUG: sleeping function called from invalid context at net/ipv4/inet\_connection\_sock.c:1523
in\_atomic(): 0, irqs\_disabled(): 0, non\_block: 0, pid: 628, name: test\_progs
preempt\_count: 0, expected: 0
RCU nest depth: 1, expected: 0
locks held by test\_progs/628: 3, last CPU\#3:
 \#0: ffff8881158cee18 (&p-\>lock){+.+.}-{4:4}, at: bpf\_seq\_read+0x56/0x1210
 \#1: ffff8881106bb858 (sk\_lock-AF\_INET6){+.+.}-{0:0}, at: bpf\_iter\_tcp\_seq\_show+0x32b/0x4b0
 \#2: ffffffffb435af20 (rcu\_read\_lock){....}-{1:3}, at: bpf\_iter\_run\_prog+0x46b/0xde0
CPU: 3 UID: 0 PID: 628 Comm: test\_progs Tainted: G        W           7.2.0+ \#65 PREEMPT
Tainted: \[W\]=WARN
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0xc1/0xf0
 dump\_stack+0x10/0x20
 \_\_might\_resched+0x3d2/0x610
 inet\_csk\_listen\_stop+0x7b/0xbf0
 tcp\_abort+0x23b/0x3b0
 bpf\_sock\_destroy+0xfc/0x140
 bpf\_prog\_448133d24601754f\_iter\_tcp6\_server+0x81/0x8a
 bpf\_iter\_run\_prog+0x538/0xde0
 bpf\_iter\_tcp\_seq\_show+0x26b/0x4b0
 bpf\_seq\_read+0x424/0x1210
 vfs\_read+0x197/0xe40
 ksys\_read+0x119/0x240
 \_\_x64\_sys\_read+0x72/0xc0
 x64\_sys\_call+0x647/0x27e0
 do\_syscall\_64+0xe5/0x610
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
RIP: 0033:0x7fad39b28aca
RSP: 002b:00007ffc381c61c0 EFLAGS: 00000246 ORIG\_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007ffc381c6a88 RCX: 00007fad39b28aca
RDX: 0000000000000032 RSI: 00007ffc381c6250 RDI: 0000000000000014
RBP: 00007ffc381c61e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000000 R14: 000055f077c1bbb0 R15: 00007fad3a0f3000
 \</TASK\>

The commit that added the kfunc already guards lock\_sock() in tcp\_abort()
and udp\_abort() with has\_current\_bpf\_ctx(), but missed the listener path.
Do the same for the cond\_resched(). The loop runs inside the iterator's
rcu\_read\_lock(), it must not reschedule or report a quiescent state there.

## Affected and fixed versions

- Linux: \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 23da88d1597ee7fdda373e1530284b763710911f; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 5b52417c6196e05618a3b5d9753dbed9adef0166; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 55bbebf2829c3f47c5a48fc261740301d0f25f48; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< ee7246bccb9da66076dd8094daa48bdc761d6b76; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< eaab8cab451b9502ce224cd202550375b894a467 (cvelist)
- Linux: 6.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-2026-98646. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98646.md
Affected: Linux >= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, < 23da88d1597ee7fdda373e1530284b763710911f; >= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, < 5b52417c6196e05618a3b5d9753dbed9adef0166; >= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, < 55bbebf2829c3f47c5a48fc261740301d0f25f48; >= 4ddbcb886268af8d12a23e6…
Fixed in: Linux 23da88d1597ee7fdda373e1530284b763710911f, Linux 5b52417c6196e05618a3b5d9753dbed9adef0166, Linux 55bbebf2829c3f47c5a48fc261740301d0f25f48

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-2026-98646 being exploited?

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

### How serious is CVE-2026-98646?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98646?

Linux \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 23da88d1597ee7fdda373e1530284b763710911f; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 5b52417c6196e05618a3b5d9753dbed9adef0166; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< 55bbebf2829c3f47c5a48fc261740301d0f25f48; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< ee7246bccb9da66076dd8094daa48bdc761d6b76; \>= 4ddbcb886268af8d12a23e6640b39d1d9c652b1b, \< eaab8cab451b9502ce224cd202550375b894a467; Linux 6.5.

### Is there a fix for CVE-2026-98646?

Yes. Fixed in Linux 23da88d1597ee7fdda373e1530284b763710911f, Linux 5b52417c6196e05618a3b5d9753dbed9adef0166, Linux 55bbebf2829c3f47c5a48fc261740301d0f25f48. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98646?

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/23da88d1597ee7fdda373e1530284b763710911f>
- other: <https://git.kernel.org/stable/c/5b52417c6196e05618a3b5d9753dbed9adef0166>
- other: <https://git.kernel.org/stable/c/55bbebf2829c3f47c5a48fc261740301d0f25f48>
- other: <https://git.kernel.org/stable/c/ee7246bccb9da66076dd8094daa48bdc761d6b76>
- other: <https://git.kernel.org/stable/c/eaab8cab451b9502ce224cd202550375b894a467>

## 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-2026-98646>

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