Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-53382

published critical CVSS 3.1 · 9.8

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

Published
18 Sep 2025, 13:33:27 UTC
Updated
05 Aug 2026, 09:13:48 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe49300a6bf6218c835403545e9356141a6340181 to < 9540765d1882d15497d880096de99fafabcfa08c · e49300a6bf6218c835403545e9356141a6340181 to < d33be18917ffe69865dfed18b0a67b0dee0b47d7 · e49300a6bf6218c835403545e9356141a6340181 to < 35112271672ae98f45df7875244a4e33aa215e31 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 6.1.31 through 6.1.* (unaffected · semver) · 6.3.5 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The vulnerable path runs in smc_listen_work() on the server CLC handshake, queued from smc_tcp_listen_work() for each inbound TCP connection with the SMC option, and is driven by remote CLC Proposal traffic over routable TCP/IP to an AF_SMC listener. AC:L - A remote peer can open many parallel SMC handshakes to induce the SMCRv2 sndbuf/RMB create or MR registration failure that triggers the uncleaned v2→v1 fallback, and can also arrange link-group connection counts so the stale link_idx avoids the immediate NULL crash and leaves the corrupted dual registration in place. PR:N - The CLC handshake in smc_listen_work() runs before accept() returns to userspace and before any application authentication; SMC performs no peer credential checks on this path. UI:N - The listen worker processes the attacker’s connection automatically via smc_clcsock_data_ready()/smc_tcp_listen_work(); no local user action is required beyond the SMC server already listening. S:U - Impact is confined to kernel SMC link-group/connection state on the same host; no VM, IOMMU, or sandbox boundary is crossed. C:H - On SMCRv2 failure without abort, smc_conn_create() for SMCRv1 re-inserts the still-linked alert_node into a second link-group rb-tree and retains a stale conn->lnk, corrupting live connection-tree state and enabling use-after-free reads of link-group/RMB metadata including rkeys. I:H - Double rb_insert of the same alert_node plus mismatched lgr/lnk state corrupts kernel heap link-group structures and connection accounting (and can free/reuse objects still reachable from the abandoned SMCRv2 lgr), yielding write/control-flow primitives after heap grooming. A:H - The commit documents a reproducible kernel NULL dereference in smc_clc_send_confirm_accept() via conn->rmb_desc->mr[stale_link->link_idx], oopsing the smc_hs_wq worker (and panicking under panic_on_oops).

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 5.5 medium CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e49300a6bf6218c835403545e9356141a6340181 to < 9540765d1882d15497d880096de99fafabcfa08c (affected · git)e49300a6bf6218c835403545e9356141a6340181 to < d33be18917ffe69865dfed18b0a67b0dee0b47d7 (affected · git)e49300a6bf6218c835403545e9356141a6340181 to < 35112271672ae98f45df7875244a4e33aa215e31 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.16 (affected)0 to < 5.16 (unaffected · semver)6.1.31 through 6.1.* (unaffected · semver)6.3.5 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-476 CWE-476 NULL Pointer Dereference (CISA-ADP · adp)

References

3

Provider assertions

2

Linux · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
18c3865eedb8037141414600d841313857abd64221c8912b04ba8453f3881342
Ingested
23 Sep 2026, 08:14:56 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected