CVE-2025-40168
published high CVSS 3.1 · 8.1smc: Use __sk_dst_get() and dst_dev_rcu() in smc_clc_prfx_match().
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa046d57da19f812216f393e7c535f5858f793ac3 to < 3f119c37aa293af41400cccb3d89fab8dcf774b0 · a046d57da19f812216f393e7c535f5858f793ac3 to < 4f5f52a5842937f945582a93cb9daed9ea526fee · a046d57da19f812216f393e7c535f5858f793ac3 to < 326e5cf301d0bec0a672aa834d8254c4f9df6255 · a046d57da19f812216f393e7c535f5858f793ac3 to < d26e80f7fb62d77757b67a1b94e4ac756bc9c658 · a046d57da19f812216f393e7c535f5858f793ac3 to < 235f81045c008169cc4e1955b4a64e118eebe61b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 6.1.187 through 6.1.* (unaffected · semver) · 6.6.156 through 6.6.* (unaffected · semver) · 6.12.108 through 6.12.* (unaffected · semver) · 6.17.3 through 6.17.* (unaffected · semver) · 6.18 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 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-124.39.1.el10_1 | ALSA-2026:3275 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-124.39.1.el10_1 | ALSA-2026:3275 |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.105.1.rt7.446.el8_10 | ALSA-2026:2821 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.105.1.el8_10 | ALSA-2026:2720 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-611.36.1.el9_7 | ALSA-2026:3488 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: smc: Use __sk_dst_get() and dst_dev_rcu() in smc_clc_prfx_match(). smc_clc_prfx_match() is called from smc_listen_work() and not under RCU nor RTNL. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dst_dev_rcu(). Note that the returned value of smc_clc_prfx_match() is not used in the caller.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable read is performed by the SMC listen worker while parsing a CLC Proposal message received over TCP from a remote peer (smc_listen_work → smc_listen_find_device → smc_listen_prfx_check → smc_clc_prfx_match), and the peer controls the fields that select and drive the code path. Any host running an AF_SMC listener is exposed to unauthenticated remote connections. AC:H - The attacker fully controls one side of the race (when the CLC Proposal arrives and thus when the stale dst->dev is dereferenced), but the other side requires the route's net_device to be concurrently torn down via dst_dev_put()/free_netdev(), which a remote attacker cannot induce or time. PR:N - The CLC handshake is the first exchange on the connection and SMC performs no authentication before smc_clc_prfx_match() runs, so an unauthenticated remote attacker reaches the bug with no credentials of any kind. UI:N - Triggering requires only that the attacker complete a TCP handshake with the SMC option and send a CLC Proposal; no action by any local user or administrator is needed. S:U - The use-after-free is confined to kernel memory (the net_device slab and the in_dev/inet6_dev structures it points at) within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The freed net_device is dereferenced and its ifa_list/addr_list walked, and since a reclaimed slab can be groomed with attacker-controlled data this yields an arbitrary kernel-memory read primitive; the match/no-match outcome is additionally returned to the peer as SMC_CLC_DECL_DIFFPREFIX, forming a remotely observable oracle on freed memory contents. I:H - A use-after-free of a net_device is a heap-corruption primitive: the reclaimed object's contents are attacker-influencable via heap spraying and the code follows pointers out of it, which can be groomed into an arbitrary write and control-flow hijack. A:H - Dereferencing the freed net_device and walking a bogus in_dev/inet6_dev address list reliably produces a kernel oops, panic, or an unbounded list walk, crashing the system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a046d57da19f812216f393e7c535f5858f793ac3 to < 3f119c37aa293af41400cccb3d89fab8dcf774b0 (affected · git)a046d57da19f812216f393e7c535f5858f793ac3 to < 4f5f52a5842937f945582a93cb9daed9ea526fee (affected · git)a046d57da19f812216f393e7c535f5858f793ac3 to < 326e5cf301d0bec0a672aa834d8254c4f9df6255 (affected · git)a046d57da19f812216f393e7c535f5858f793ac3 to < d26e80f7fb62d77757b67a1b94e4ac756bc9c658 (affected · git)a046d57da19f812216f393e7c535f5858f793ac3 to < 235f81045c008169cc4e1955b4a64e118eebe61b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.11 (affected)0 to < 4.11 (unaffected · semver)6.1.187 through 6.1.* (unaffected · semver)6.6.156 through 6.6.* (unaffected · semver)6.12.108 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/235f81045c008169cc4e1955b4a64e118eebe61b
- https://git.kernel.org/stable/c/326e5cf301d0bec0a672aa834d8254c4f9df6255
- https://git.kernel.org/stable/c/3f119c37aa293af41400cccb3d89fab8dcf774b0
- https://git.kernel.org/stable/c/4f5f52a5842937f945582a93cb9daed9ea526fee
- https://git.kernel.org/stable/c/d26e80f7fb62d77757b67a1b94e4ac756bc9c658
Provider assertions
2Linux · cna
smc: Use __sk_dst_get() and dst_dev_rcu() in smc_clc_prfx_match().
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 27c719c40e5994013ee10de9f161202fbd7181e54b541a37d7c7d0267f9a241e
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record