# CVE-2024-35910: tcp: properly terminate timers for kernel sockets

> 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.37% (percentile 23, 2026-11-26)
- **Published:** 2024-05-19T08:35:03.287Z
- **Modified:** 2026-10-15T01:17:52.513Z

## Who should check

- Anyone running Linux \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 93f0133b9d589cc6e865f254ad9be3e9d8133f50; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 44e62f5d35678686734afd47c6a421ad30772e7f; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< e3e27d2b446deb1f643758a0c4731f5c22492810; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 2e43d8eba6edd1cf05a3a20fdd77688fa7ec16a4; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 91b243de910a9ac8476d40238ab3dbfeedd5b7de; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< c1ae4d1e76eacddaacb958b67cd942082f800c87; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 899265c1389fe022802aae73dbf13ee08837a35a; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada
- Anyone running Linux 4.2

## Description

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

tcp: properly terminate timers for kernel sockets

We had various syzbot reports about tcp timers firing after
the corresponding netns has been dismantled.

Fortunately Josef Bacik could trigger the issue more often,
and could test a patch I wrote two years ago.

When TCP sockets are closed, we call inet\_csk\_clear\_xmit\_timers()
to 'stop' the timers.

inet\_csk\_clear\_xmit\_timers() can be called from any context,
including when socket lock is held.
This is the reason it uses sk\_stop\_timer(), aka del\_timer().
This means that ongoing timers might finish much later.

For user sockets, this is fine because each running timer
holds a reference on the socket, and the user socket holds
a reference on the netns.

For kernel sockets, we risk that the netns is freed before
timer can complete, because kernel sockets do not hold
reference on the netns.

This patch adds inet\_csk\_clear\_xmit\_timers\_sync() function
that using sk\_stop\_timer\_sync() to make sure all timers
are terminated before the kernel socket is released.
Modules using kernel sockets close them in their netns exit()
handler.

Also add sock\_not\_owned\_by\_me() helper to get LOCKDEP
support : inet\_csk\_clear\_xmit\_timers\_sync() must not be called
while socket lock is held.

It is very possible we can revert in the future commit
3a58f13a881e ("net: rds: acquire refcount on TCP sockets")
which attempted to solve the issue in rds only.
(net/smc/af\_smc.c and net/mptcp/subflow.c have similar code)

We probably can remove the check\_net() tests from
tcp\_out\_of\_resources() and \_\_tcp\_close() in the future.

## Affected and fixed versions

- Linux: \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 93f0133b9d589cc6e865f254ad9be3e9d8133f50; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 44e62f5d35678686734afd47c6a421ad30772e7f; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< e3e27d2b446deb1f643758a0c4731f5c22492810; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 2e43d8eba6edd1cf05a3a20fdd77688fa7ec16a4; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 91b243de910a9ac8476d40238ab3dbfeedd5b7de; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< c1ae4d1e76eacddaacb958b67cd942082f800c87; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 899265c1389fe022802aae73dbf13ee08837a35a; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada 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-35910. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35910.md
Affected: Linux >= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, < 93f0133b9d589cc6e865f254ad9be3e9d8133f50; >= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, < 44e62f5d35678686734afd47c6a421ad30772e7f; >= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, < e3e27d2b446deb1f643758a0c4731f5c22492810; >= 26abe14379f8e2fa3fd1bcf…
Fixed in: Linux 93f0133b9d589cc6e865f254ad9be3e9d8133f50, Linux 44e62f5d35678686734afd47c6a421ad30772e7f, Linux 2e43d8eba6edd1cf05a3a20fdd77688fa7ec16a4, Linux 91b243de910a9ac8476d40238ab3dbfeedd5b7de, Linux 899265c1389fe022802aae73dbf13ee08837a35a, Linux 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada

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

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

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

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

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

Linux \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 93f0133b9d589cc6e865f254ad9be3e9d8133f50; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 44e62f5d35678686734afd47c6a421ad30772e7f; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< e3e27d2b446deb1f643758a0c4731f5c22492810; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 2e43d8eba6edd1cf05a3a20fdd77688fa7ec16a4; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 91b243de910a9ac8476d40238ab3dbfeedd5b7de; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< c1ae4d1e76eacddaacb958b67cd942082f800c87; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 899265c1389fe022802aae73dbf13ee08837a35a; \>= 26abe14379f8e2fa3fd1bcf97c9a7ad9364886fe, \< 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada; Linux 4.2.

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

Yes. Fixed in Linux 93f0133b9d589cc6e865f254ad9be3e9d8133f50, Linux 44e62f5d35678686734afd47c6a421ad30772e7f, Linux 2e43d8eba6edd1cf05a3a20fdd77688fa7ec16a4, Linux 91b243de910a9ac8476d40238ab3dbfeedd5b7de, Linux 899265c1389fe022802aae73dbf13ee08837a35a, Linux 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada. Upgrade Linux to 151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada or later.

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

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/93f0133b9d589cc6e865f254ad9be3e9d8133f50>
- patch: <https://git.kernel.org/stable/c/44e62f5d35678686734afd47c6a421ad30772e7f>
- patch: <https://git.kernel.org/stable/c/e3e27d2b446deb1f643758a0c4731f5c22492810>
- patch: <https://git.kernel.org/stable/c/2e43d8eba6edd1cf05a3a20fdd77688fa7ec16a4>
- patch: <https://git.kernel.org/stable/c/91b243de910a9ac8476d40238ab3dbfeedd5b7de>
- patch: <https://git.kernel.org/stable/c/c1ae4d1e76eacddaacb958b67cd942082f800c87>
- patch: <https://git.kernel.org/stable/c/899265c1389fe022802aae73dbf13ee08837a35a>
- patch: <https://git.kernel.org/stable/c/151c9c724d05d5b0dd8acd3e11cb69ef1f2dbada>
- 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>

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

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