# CVE-2023-53781: smc: Fix use-after-free in tcp\_write\_timer\_handler().

> 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.22% (percentile 8, 2026-11-28)
- **Published:** 2025-12-09T00:00:36.831Z
- **Modified:** 2026-10-30T13:17:19.257Z

## Who should check

- Anyone running Linux \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 08f057bd1e559cdb388c77b18de3eea3d3d8cb24; \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 1cc41c8acfc1ee30b4868559058db97fa44b0137; \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 9744d2bf19762703704ecba885b7ac282c02eacf
- Anyone running Linux 4.11

## Description

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

smc: Fix use-after-free in tcp\_write\_timer\_handler().

With Eric's ref tracker, syzbot finally found a repro for
use-after-free in tcp\_write\_timer\_handler() by kernel TCP
sockets. \[0\]

If SMC creates a kernel socket in \_\_smc\_create(), the kernel
socket is supposed to be freed in smc\_clcsock\_release() by
calling sock\_release() when we close() the parent SMC socket.

However, at the end of smc\_clcsock\_release(), the kernel
socket's sk\_state might not be TCP\_CLOSE.  This means that
we have not called inet\_csk\_destroy\_sock() in \_\_tcp\_close()
and have not stopped the TCP timers.

The kernel socket's TCP timers can be fired later, so we
need to hold a refcnt for net as we do for MPTCP subflows
in mptcp\_subflow\_create\_socket().

\[0\]:
leaked reference.
 sk\_alloc (./include/net/net\_namespace.h:335 net/core/sock.c:2108)
 inet\_create (net/ipv4/af\_inet.c:319 net/ipv4/af\_inet.c:244)
 \_\_sock\_create (net/socket.c:1546)
 smc\_create (net/smc/af\_smc.c:3269 net/smc/af\_smc.c:3284)
 \_\_sock\_create (net/socket.c:1546)
 \_\_sys\_socket (net/socket.c:1634 net/socket.c:1618 net/socket.c:1661)
 \_\_x64\_sys\_socket (net/socket.c:1672)
 do\_syscall\_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
 entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:120)
==================================================================
BUG: KASAN: slab-use-after-free in tcp\_write\_timer\_handler (net/ipv4/tcp\_timer.c:378 net/ipv4/tcp\_timer.c:624 net/ipv4/tcp\_timer.c:594)
Read of size 1 at addr ffff888052b65e0d by task syzrepro/18091

CPU: 0 PID: 18091 Comm: syzrepro Tainted: G        W          6.3.0-rc4-01174-gb5d54eb5899a \#7
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-1.amzn2022.0.1 04/01/2014
Call Trace:
 \<IRQ\>
 dump\_stack\_lvl (lib/dump\_stack.c:107)
 print\_report (mm/kasan/report.c:320 mm/kasan/report.c:430)
 kasan\_report (mm/kasan/report.c:538)
 tcp\_write\_timer\_handler (net/ipv4/tcp\_timer.c:378 net/ipv4/tcp\_timer.c:624 net/ipv4/tcp\_timer.c:594)
 tcp\_write\_timer (./include/linux/spinlock.h:390 net/ipv4/tcp\_timer.c:643)
 call\_timer\_fn (./arch/x86/include/asm/jump\_label.h:27 ./include/linux/jump\_label.h:207 ./include/trace/events/timer.h:127 kernel/time/timer.c:1701)
 \_\_run\_timers.part.0 (kernel/time/timer.c:1752 kernel/time/timer.c:2022)
 run\_timer\_softirq (kernel/time/timer.c:2037)
 \_\_do\_softirq (./arch/x86/include/asm/jump\_label.h:27 ./include/linux/jump\_label.h:207 ./include/trace/events/irq.h:142 kernel/softirq.c:572)
 \_\_irq\_exit\_rcu (kernel/softirq.c:445 kernel/softirq.c:650)
 irq\_exit\_rcu (kernel/softirq.c:664)
 sysvec\_apic\_timer\_interrupt (arch/x86/kernel/apic/apic.c:1107 (discriminator 14))
 \</IRQ\>

## Affected and fixed versions

- Linux: \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 08f057bd1e559cdb388c77b18de3eea3d3d8cb24; \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 1cc41c8acfc1ee30b4868559058db97fa44b0137; \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 9744d2bf19762703704ecba885b7ac282c02eacf (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 9744d2bf19762703704ecba885b7ac282c02eacf or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53781.md
Affected: Linux >= ac7138746e14137a451f8539614cdd349153e0c0, < 08f057bd1e559cdb388c77b18de3eea3d3d8cb24; >= ac7138746e14137a451f8539614cdd349153e0c0, < 1cc41c8acfc1ee30b4868559058db97fa44b0137; >= ac7138746e14137a451f8539614cdd349153e0c0, < 9744d2bf19762703704ecba885b7ac282c02eacf; Linux 4.11
Fixed in: Linux 08f057bd1e559cdb388c77b18de3eea3d3d8cb24, Linux 1cc41c8acfc1ee30b4868559058db97fa44b0137, Linux 9744d2bf19762703704ecba885b7ac282c02eacf

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

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

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

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

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

Linux \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 08f057bd1e559cdb388c77b18de3eea3d3d8cb24; \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 1cc41c8acfc1ee30b4868559058db97fa44b0137; \>= ac7138746e14137a451f8539614cdd349153e0c0, \< 9744d2bf19762703704ecba885b7ac282c02eacf; Linux 4.11.

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

Yes. Fixed in Linux 08f057bd1e559cdb388c77b18de3eea3d3d8cb24, Linux 1cc41c8acfc1ee30b4868559058db97fa44b0137, Linux 9744d2bf19762703704ecba885b7ac282c02eacf. Upgrade Linux to 9744d2bf19762703704ecba885b7ac282c02eacf or later.

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

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/08f057bd1e559cdb388c77b18de3eea3d3d8cb24>
- other: <https://git.kernel.org/stable/c/1cc41c8acfc1ee30b4868559058db97fa44b0137>
- other: <https://git.kernel.org/stable/c/9744d2bf19762703704ecba885b7ac282c02eacf>

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

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