# CVE-2025-38734: net/smc: fix UAF on smcsk after smc\_listen\_out()

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-05T17:20:34.126Z
- **Modified:** 2026-10-30T13:18:08.217Z

## Who should check

- Anyone running Linux \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< e3065286959664207c0162178a3b5a90808a1bf9; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 2e765ba0ee0eae35688b443e97108308a716773e; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 85545f1525f9fa9bf44fec77ba011024f15da342; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< d9cef55ed49117bd63695446fb84b4b91815c0b4
- Anyone running Linux 4.18

## Description

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

net/smc: fix UAF on smcsk after smc\_listen\_out()

BPF CI testing report a UAF issue:

  \[   16.446633\] BUG: kernel NULL pointer dereference, address: 000000000000003  0
  \[   16.447134\] \#PF: supervisor read access in kernel mod  e
  \[   16.447516\] \#PF: error\_code(0x0000) - not-present pag  e
  \[   16.447878\] PGD 0 P4D   0
  \[   16.448063\] Oops: Oops: 0000 \[\#1\] PREEMPT SMP NOPT  I
  \[   16.448409\] CPU: 0 UID: 0 PID: 9 Comm: kworker/0:1 Tainted: G           OE      6.13.0-rc3-g89e8a75fda73-dirty \#4  2
  \[   16.449124\] Tainted: \[O\]=OOT\_MODULE, \[E\]=UNSIGNED\_MODUL  E
  \[   16.449502\] Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/201  4
  \[   16.450201\] Workqueue: smc\_hs\_wq smc\_listen\_wor  k
  \[   16.450531\] RIP: 0010:smc\_listen\_work+0xc02/0x159  0
  \[   16.452158\] RSP: 0018:ffffb5ab40053d98 EFLAGS: 0001024  6
  \[   16.452526\] RAX: 0000000000000001 RBX: 0000000000000002 RCX: 000000000000030  0
  \[   16.452994\] RDX: 0000000000000280 RSI: 00003513840053f0 RDI: 000000000000000  0
  \[   16.453492\] RBP: ffffa097808e3800 R08: ffffa09782dba1e0 R09: 000000000000000  5
  \[   16.453987\] R10: 0000000000000000 R11: 0000000000000000 R12: ffffa0978274640  0
  \[   16.454497\] R13: 0000000000000000 R14: 0000000000000000 R15: ffffa09782d4092  0
  \[   16.454996\] FS:  0000000000000000(0000) GS:ffffa097bbc00000(0000) knlGS:000000000000000  0
  \[   16.455557\] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003  3
  \[   16.455961\] CR2: 0000000000000030 CR3: 0000000102788004 CR4: 0000000000770ef  0
  \[   16.456459\] PKRU: 5555555  4
  \[   16.456654\] Call Trace  :
  \[   16.456832\]  \<TASK  \>
  \[   16.456989\]  ? \_\_die+0x23/0x7  0
  \[   16.457215\]  ? page\_fault\_oops+0x180/0x4c  0
  \[   16.457508\]  ? \_\_lock\_acquire+0x3e6/0x249  0
  \[   16.457801\]  ? exc\_page\_fault+0x68/0x20  0
  \[   16.458080\]  ? asm\_exc\_page\_fault+0x26/0x3  0
  \[   16.458389\]  ? smc\_listen\_work+0xc02/0x159  0
  \[   16.458689\]  ? smc\_listen\_work+0xc02/0x159  0
  \[   16.458987\]  ? lock\_is\_held\_type+0x8f/0x10  0
  \[   16.459284\]  process\_one\_work+0x1ea/0x6d  0
  \[   16.459570\]  worker\_thread+0x1c3/0x38  0
  \[   16.459839\]  ? \_\_pfx\_worker\_thread+0x10/0x1  0
  \[   16.460144\]  kthread+0xe0/0x11  0
  \[   16.460372\]  ? \_\_pfx\_kthread+0x10/0x1  0
  \[   16.460640\]  ret\_from\_fork+0x31/0x5  0
  \[   16.460896\]  ? \_\_pfx\_kthread+0x10/0x1  0
  \[   16.461166\]  ret\_from\_fork\_asm+0x1a/0x3  0
  \[   16.461453\]  \</TASK  \>
  \[   16.461616\] Modules linked in: bpf\_testmod(OE) \[last unloaded: bpf\_testmod(OE)  \]
  \[   16.462134\] CR2: 000000000000003  0
  \[   16.462380\] ---\[ end trace 0000000000000000 \]---
  \[   16.462710\] RIP: 0010:smc\_listen\_work+0xc02/0x1590

The direct cause of this issue is that after smc\_listen\_out\_connected(),
newclcsock-\>sk may be NULL since it will releases the smcsk. Therefore,
if the application closes the socket immediately after accept,
newclcsock-\>sk can be NULL. A possible execution order could be as
follows:

smc\_listen\_work                                 \| userspace
-----------------------------------------------------------------
lock\_sock(sk)                                   \|
smc\_listen\_out\_connected()                      \|
\| \\- smc\_listen\_out                             \|
\|    \| \\- release\_sock                          \|
     \| \|- sk-\>sk\_data\_ready()                   \|
                                                \| fd = accept();
                                                \| close(fd);
                                                \|  \\- socket-\>sk = NULL;
/\* newclcsock-\>sk is NULL now \*/
SMC\_STAT\_SERV\_SUCC\_INC(sock\_net(newclcsock-\>sk))

Since smc\_listen\_out\_connected() will not fail, simply swapping the order
of the code can easily fix this issue.

## Affected and fixed versions

- Linux: \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< e3065286959664207c0162178a3b5a90808a1bf9; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 2e765ba0ee0eae35688b443e97108308a716773e; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 85545f1525f9fa9bf44fec77ba011024f15da342; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< d9cef55ed49117bd63695446fb84b4b91815c0b4 (cvelist)
- Linux: 4.18 (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-2025-38734. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38734.md
Affected: Linux >= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, < e3065286959664207c0162178a3b5a90808a1bf9; >= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, < 070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f; >= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, < 2e765ba0ee0eae35688b443e97108308a716773e; >= 3b2dec2603d5b06ad3af71c…
Fixed in: Linux 070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f, Linux 2e765ba0ee0eae35688b443e97108308a716773e, Linux 85545f1525f9fa9bf44fec77ba011024f15da342

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-2025-38734 being exploited?

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

### How serious is CVE-2025-38734?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-38734?

Linux \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< e3065286959664207c0162178a3b5a90808a1bf9; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 2e765ba0ee0eae35688b443e97108308a716773e; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< 85545f1525f9fa9bf44fec77ba011024f15da342; \>= 3b2dec2603d5b06ad3af71c1164ca0b92df3d2a8, \< d9cef55ed49117bd63695446fb84b4b91815c0b4; Linux 4.18.

### Is there a fix for CVE-2025-38734?

Yes. Fixed in Linux 070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f, Linux 2e765ba0ee0eae35688b443e97108308a716773e, Linux 85545f1525f9fa9bf44fec77ba011024f15da342. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38734?

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/070b4af44c4b6e4c35fb1ca7001a6a88fd2d318f>
- patch: <https://git.kernel.org/stable/c/2e765ba0ee0eae35688b443e97108308a716773e>
- patch: <https://git.kernel.org/stable/c/85545f1525f9fa9bf44fec77ba011024f15da342>
- patch: <https://git.kernel.org/stable/c/d9cef55ed49117bd63695446fb84b4b91815c0b4>
- other: <https://git.kernel.org/stable/c/e3065286959664207c0162178a3b5a90808a1bf9>

## 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-2025-38734>

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