# CVE-2026-23450: net/smc: fix NULL dereference and UAF in smc\_tcp\_syn\_recv\_sock()

> 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.69% (percentile 48, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-04-03T15:15:33.144Z
- **Modified:** 2026-11-10T13:18:46.850Z

## Who should check

- Anyone running Linux \>= ebfee3e153f67c8b38eb94a7062ee94aa6f92708, \< f315277856caeafcd996c2611afc085ca2d53275; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 1e4f873879e075bbd4eb1c644d6933303ac5eba4; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< f00fc26c8a06442b225a350fe000c0a11483e6a3; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< cadf3da46c15523fba90d80c9955f536ee3b4023; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< fd7579f0a2c84ba8a7d4f206201b50dc8ddf90c2; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 1fab5ece76fb42a761178dcd0ebcbf578377b0dd; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 6d5e4538364b9ceb1ac2941a4deb86650afb3538; \>= 5.15.174, \< 5.15.203
- Anyone running Linux 5.18

## Description

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

net/smc: fix NULL dereference and UAF in smc\_tcp\_syn\_recv\_sock()

Syzkaller reported a panic in smc\_tcp\_syn\_recv\_sock() \[1\].

smc\_tcp\_syn\_recv\_sock() is called in the TCP receive path
(softirq) via icsk\_af\_ops-\>syn\_recv\_sock on the clcsock (TCP
listening socket). It reads sk\_user\_data to get the smc\_sock
pointer. However, when the SMC listen socket is being closed
concurrently, smc\_close\_active() sets clcsock-\>sk\_user\_data
to NULL under sk\_callback\_lock, and then the smc\_sock itself
can be freed via sock\_put() in smc\_release().

This leads to two issues:

1) NULL pointer dereference: sk\_user\_data is NULL when
   accessed.
2) Use-after-free: sk\_user\_data is read as non-NULL, but the
   smc\_sock is freed before its fields (e.g., queued\_smc\_hs,
   ori\_af\_ops) are accessed.

The race window looks like this (the syzkaller crash \[1\]
triggers via the SYN cookie path: tcp\_get\_cookie\_sock() -\>
smc\_tcp\_syn\_recv\_sock(), but the normal tcp\_check\_req() path
has the same race):

  CPU A (softirq)              CPU B (process ctx)

  tcp\_v4\_rcv()
    TCP\_NEW\_SYN\_RECV:
    sk = req-\>rsk\_listener
    sock\_hold(sk)
    /\* No lock on listener \*/
                               smc\_close\_active():
                                 write\_lock\_bh(cb\_lock)
                                 sk\_user\_data = NULL
                                 write\_unlock\_bh(cb\_lock)
                                 ...
                                 smc\_clcsock\_release()
                                 sock\_put(smc-\>sk) x2
                                   -\> smc\_sock freed!
    tcp\_check\_req()
      smc\_tcp\_syn\_recv\_sock():
        smc = user\_data(sk)
          -\> NULL or dangling
        smc-\>queued\_smc\_hs
          -\> crash!

Note that the clcsock and smc\_sock are two independent objects
with separate refcounts. TCP stack holds a reference on the
clcsock, which keeps it alive, but this does NOT prevent the
smc\_sock from being freed.

Fix this by using RCU and refcount\_inc\_not\_zero() to safely
access smc\_sock. Since smc\_tcp\_syn\_recv\_sock() is called in
the TCP three-way handshake path, taking read\_lock\_bh on
sk\_callback\_lock is too heavy and would not survive a SYN
flood attack. Using rcu\_read\_lock() is much more lightweight.

- Set SOCK\_RCU\_FREE on the SMC listen socket so that
  smc\_sock freeing is deferred until after the RCU grace
  period. This guarantees the memory is still valid when
  accessed inside rcu\_read\_lock().
- Use rcu\_read\_lock() to protect reading sk\_user\_data.
- Use refcount\_inc\_not\_zero(&smc-\>sk.sk\_refcnt) to pin the
  smc\_sock. If the refcount has already reached zero (close
  path completed), it returns false and we bail out safely.

Note: smc\_hs\_congested() has a similar lockless read of
sk\_user\_data without rcu\_read\_lock(), but it only checks for
NULL and accesses the global smc\_hs\_wq, never dereferencing
any smc\_sock field, so it is not affected.

Reproducer was verified with mdelay injection and smc\_run,
the issue no longer occurs with this patch applied.

\[1\] https://syzkaller.appspot.com/bug?extid=827ae2bfb3a3529333e9

## Affected and fixed versions

- Linux: \>= ebfee3e153f67c8b38eb94a7062ee94aa6f92708, \< f315277856caeafcd996c2611afc085ca2d53275; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 1e4f873879e075bbd4eb1c644d6933303ac5eba4; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< f00fc26c8a06442b225a350fe000c0a11483e6a3; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< cadf3da46c15523fba90d80c9955f536ee3b4023; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< fd7579f0a2c84ba8a7d4f206201b50dc8ddf90c2; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 1fab5ece76fb42a761178dcd0ebcbf578377b0dd; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 6d5e4538364b9ceb1ac2941a4deb86650afb3538; \>= 5.15.174, \< 5.15.203 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 5.15.203 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23450.md
Affected: Linux >= ebfee3e153f67c8b38eb94a7062ee94aa6f92708, < f315277856caeafcd996c2611afc085ca2d53275; >= 8270d9c21041470f58348248b9d9dcf3bf79592e, < 1e4f873879e075bbd4eb1c644d6933303ac5eba4; >= 8270d9c21041470f58348248b9d9dcf3bf79592e, < f00fc26c8a06442b225a350fe000c0a11483e6a3; >= 8270d9c21041470f5834824…
Fixed in: Linux 1e4f873879e075bbd4eb1c644d6933303ac5eba4, Linux 1fab5ece76fb42a761178dcd0ebcbf578377b0dd, Linux 6d5e4538364b9ceb1ac2941a4deb86650afb3538, Linux 5.15.203

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

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

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

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

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

Linux \>= ebfee3e153f67c8b38eb94a7062ee94aa6f92708, \< f315277856caeafcd996c2611afc085ca2d53275; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 1e4f873879e075bbd4eb1c644d6933303ac5eba4; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< f00fc26c8a06442b225a350fe000c0a11483e6a3; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< cadf3da46c15523fba90d80c9955f536ee3b4023; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< fd7579f0a2c84ba8a7d4f206201b50dc8ddf90c2; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 1fab5ece76fb42a761178dcd0ebcbf578377b0dd; \>= 8270d9c21041470f58348248b9d9dcf3bf79592e, \< 6d5e4538364b9ceb1ac2941a4deb86650afb3538; \>= 5.15.174, \< 5.15.203; Linux 5.18.

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

Yes. Fixed in Linux 1e4f873879e075bbd4eb1c644d6933303ac5eba4, Linux 1fab5ece76fb42a761178dcd0ebcbf578377b0dd, Linux 6d5e4538364b9ceb1ac2941a4deb86650afb3538, Linux 5.15.203. Upgrade Linux to 5.15.203 or later.

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

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/f315277856caeafcd996c2611afc085ca2d53275>
- patch: <https://git.kernel.org/stable/c/1e4f873879e075bbd4eb1c644d6933303ac5eba4>
- patch: <https://git.kernel.org/stable/c/f00fc26c8a06442b225a350fe000c0a11483e6a3>
- patch: <https://git.kernel.org/stable/c/cadf3da46c15523fba90d80c9955f536ee3b4023>
- patch: <https://git.kernel.org/stable/c/fd7579f0a2c84ba8a7d4f206201b50dc8ddf90c2>
- patch: <https://git.kernel.org/stable/c/1fab5ece76fb42a761178dcd0ebcbf578377b0dd>
- patch: <https://git.kernel.org/stable/c/6d5e4538364b9ceb1ac2941a4deb86650afb3538>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.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-2026-23450>

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