# CVE-2023-53382: net/smc: Reset connection when trying to use SMCRv2 fails.

> 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.58% (percentile 42, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-18T13:33:27.029Z
- **Modified:** 2026-08-05T09:13:48.365Z

## Who should check

- Anyone running Linux \>= e49300a6bf6218c835403545e9356141a6340181, \< 9540765d1882d15497d880096de99fafabcfa08c; \>= e49300a6bf6218c835403545e9356141a6340181, \< d33be18917ffe69865dfed18b0a67b0dee0b47d7; \>= e49300a6bf6218c835403545e9356141a6340181, \< 35112271672ae98f45df7875244a4e33aa215e31
- Anyone running Linux 5.16

## Description

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

net/smc: Reset connection when trying to use SMCRv2 fails.

We found a crash when using SMCRv2 with 2 Mellanox ConnectX-4. It
can be reproduced by:

- smc\_run nginx
- smc\_run wrk -t 32 -c 500 -d 30 http://\<ip\>:\<port\>

 BUG: kernel NULL pointer dereference, address: 0000000000000014
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 8000000108713067 P4D 8000000108713067 PUD 151127067 PMD 0
 Oops: 0000 \[\#1\] PREEMPT SMP PTI
 CPU: 4 PID: 2441 Comm: kworker/4:249 Kdump: loaded Tainted: G        W   E      6.4.0-rc1+ \#42
 Workqueue: smc\_hs\_wq smc\_listen\_work \[smc\]
 RIP: 0010:smc\_clc\_send\_confirm\_accept+0x284/0x580 \[smc\]
 RSP: 0018:ffffb8294b2d7c78 EFLAGS: 00010a06
 RAX: ffff8f1873238880 RBX: ffffb8294b2d7dc8 RCX: 0000000000000000
 RDX: 00000000000000b4 RSI: 0000000000000001 RDI: 0000000000b40c00
 RBP: ffffb8294b2d7db8 R08: ffff8f1815c5860c R09: 0000000000000000
 R10: 0000000000000400 R11: 0000000000000000 R12: ffff8f1846f56180
 R13: ffff8f1815c5860c R14: 0000000000000001 R15: 0000000000000001
 FS:  0000000000000000(0000) GS:ffff8f1aefd00000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000000000014 CR3: 00000001027a0001 CR4: 00000000003706e0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  \<TASK\>
  ? mlx5\_ib\_map\_mr\_sg+0xa1/0xd0 \[mlx5\_ib\]
  ? smcr\_buf\_map\_link+0x24b/0x290 \[smc\]
  ? \_\_smc\_buf\_create+0x4ee/0x9b0 \[smc\]
  smc\_clc\_send\_accept+0x4c/0xb0 \[smc\]
  smc\_listen\_work+0x346/0x650 \[smc\]
  ? \_\_schedule+0x279/0x820
  process\_one\_work+0x1e5/0x3f0
  worker\_thread+0x4d/0x2f0
  ? \_\_pfx\_worker\_thread+0x10/0x10
  kthread+0xe5/0x120
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork+0x2c/0x50
  \</TASK\>

During the CLC handshake, server sequentially tries available SMCRv2
and SMCRv1 devices in smc\_listen\_work().

If an SMCRv2 device is found. SMCv2 based link group and link will be
assigned to the connection. Then assumed that some buffer assignment
errors happen later in the CLC handshake, such as RMB registration
failure, server will give up SMCRv2 and try SMCRv1 device instead. But
the resources assigned to the connection won't be reset.

When server tries SMCRv1 device, the connection creation process will
be executed again. Since conn-\>lnk has been assigned when trying SMCRv2,
it will not be set to the correct SMCRv1 link in
smcr\_lgr\_conn\_assign\_link(). So in such situation, conn-\>lgr points to
correct SMCRv1 link group but conn-\>lnk points to the SMCRv2 link
mistakenly.

Then in smc\_clc\_send\_confirm\_accept(), conn-\>rmb\_desc-\>mr\[link-\>link\_idx\]
will be accessed. Since the link-\>link\_idx is not correct, the related
MR may not have been initialized, so crash happens.

 \| Try SMCRv2 device first
 \|     \|-\> conn-\>lgr:	assign existed SMCRv2 link group;
 \|     \|-\> conn-\>link:	assign existed SMCRv2 link (link\_idx may be 1 in SMC\_LGR\_SYMMETRIC);
 \|     \|-\> sndbuf & RMB creation fails, quit;
 \|
 \| Try SMCRv1 device then
 \|     \|-\> conn-\>lgr:	create SMCRv1 link group and assign;
 \|     \|-\> conn-\>link:	keep SMCRv2 link mistakenly;
 \|     \|-\> sndbuf & RMB creation succeed, only RMB-\>mr\[link\_idx = 0\]
 \|         initialized.
 \|
 \| Then smc\_clc\_send\_confirm\_accept() accesses
 \| conn-\>rmb\_desc-\>mr\[conn-\>link-\>link\_idx, which is 1\], then crash.
 v

This patch tries to fix this by cleaning conn-\>lnk before assigning
link. In addition, it is better to reset the connection and clean the
resources assigned if trying SMCRv2 failed in buffer creation or
registration.

## Affected and fixed versions

- Linux: \>= e49300a6bf6218c835403545e9356141a6340181, \< 9540765d1882d15497d880096de99fafabcfa08c; \>= e49300a6bf6218c835403545e9356141a6340181, \< d33be18917ffe69865dfed18b0a67b0dee0b47d7; \>= e49300a6bf6218c835403545e9356141a6340181, \< 35112271672ae98f45df7875244a4e33aa215e31 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53382.md
Affected: Linux >= e49300a6bf6218c835403545e9356141a6340181, < 9540765d1882d15497d880096de99fafabcfa08c; >= e49300a6bf6218c835403545e9356141a6340181, < d33be18917ffe69865dfed18b0a67b0dee0b47d7; >= e49300a6bf6218c835403545e9356141a6340181, < 35112271672ae98f45df7875244a4e33aa215e31; Linux 5.16
Fixed in: Linux 9540765d1882d15497d880096de99fafabcfa08c, Linux 35112271672ae98f45df7875244a4e33aa215e31

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

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

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

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

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

Linux \>= e49300a6bf6218c835403545e9356141a6340181, \< 9540765d1882d15497d880096de99fafabcfa08c; \>= e49300a6bf6218c835403545e9356141a6340181, \< d33be18917ffe69865dfed18b0a67b0dee0b47d7; \>= e49300a6bf6218c835403545e9356141a6340181, \< 35112271672ae98f45df7875244a4e33aa215e31; Linux 5.16.

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

Yes. Fixed in Linux 9540765d1882d15497d880096de99fafabcfa08c, Linux 35112271672ae98f45df7875244a4e33aa215e31. Upgrade Linux to 35112271672ae98f45df7875244a4e33aa215e31 or later.

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

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/9540765d1882d15497d880096de99fafabcfa08c>
- patch: <https://git.kernel.org/stable/c/d33be18917ffe69865dfed18b0a67b0dee0b47d7>
- patch: <https://git.kernel.org/stable/c/35112271672ae98f45df7875244a4e33aa215e31>

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

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