CVE-2025-38192 net: clear the dst when changing skb protocol
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
net: clear the dst when changing skb protocol
A not-so-careful NAT46 BPF program can crash the kernel
if it indiscriminately flips ingress packets from v4 to v6:
BUG: kernel NULL pointer dereference, address: 0000000000000000
ip6_rcv_core (net/ipv6/ip6_input.c:190:20)
ipv6_rcv (net/ipv6/ip6_input.c:306:8)
process_backlog (net/core/dev.c:6186:4)
napi_poll (net/core/dev.c:6906:9)
net_rx_action (net/core/dev.c:7028:13)
do_softirq (kernel/softirq.c:462:3)
netif_rx (net/core/dev.c:5326:3)
dev_loopback_xmit (net/core/dev.c:4015:2)
ip_mc_finish_output (net/ipv4/ip_output.c:363:8)
NF_HOOK (./include/linux/netfilter.h:314:9)
ip_mc_output (net/ipv4/ip_output.c:400:5)
dst_output (./include/net/dst.h:459:9)
ip_local_out (net/ipv4/ip_output.c:130:9)
ip_send_skb (net/ipv4/ip_output.c:1496:8)
udp_send_skb (net/ipv4/udp.c:1040:8)
udp_sendmsg (net/ipv4/udp.c:1328:10)
The output interface has a 4->6 program attached at ingress.
We try to loop the multicast skb back to the sending socket.
Ingress BPF runs as part of netif_rx(), pushes a valid v6 hdr
and changes skb->protocol to v6. We enter ip6_rcv_core which
tries to use skb_dst(). But the dst is still an IPv4 one left
after IPv4 mcast output.
Clear the dst in all BPF helpers which change the protocol.
Try to preserve metadata dsts, those may carry non-routing
metadata.
Upgrade path
18 packages: 10 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner kernel(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| Microsoft cbl2 kernel 5.15.202.1-1 | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | All versions | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.5; >= V3.1.6; >= V3.1.7 | No fix listed | No fix yet |
| azure linux kernel(Azure Linux 3.0) | < 6.6.96.1-1 | 6.6.96.1-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.170-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +45 more | 6.1.170-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.35-1 | 6.12.35-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.35-1 | 6.12.35-1 | Fixed |
| Linux kernel | < 5.15.209; < 6.1.167; < 6.6.95; < 6.12.35 +13 more | 2a3ad42a57b43145839f2f233fb562247658a6d9, 5.15.209, 6.1.167, 6.6.95, 6.12.35, 6.15.4, 6.16, 98b1d8dc9a3170b2614f1e8c93854e75cdd83980, a046f183d21ab5ace5a96ece4cf9873a42f003a7, ba9db6f907ac02215e30128770f85fbd7db2fcf9, bfa4d86e130a09f67607482e988313430e38f6c4, e9994e7b9f7bbb882d13c8191731649249150d21 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-186.196 | 5.15.0-186.196 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1104.109 | 5.15.0-1104.109 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1106.109 | 5.15.0-1106.109 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | < 6.6.96.1-1 | 6.6.96.1-1 |
| cbl-mariner kernel(CBL-Mariner:2.0) | All versions | No fix listed |
| Microsoft cbl2 kernel 5.15.202.1-1 | All versions | No fix listed |
| debian/linux(Debian:12) | < 6.1.170-1 | 6.1.170-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.140-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.147-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.148-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.153-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.158-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.159-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.162-1 | No fix listed |
Show 67 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.164-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.35-1 | 6.12.35-1 |
| debian/linux(Debian:14) | < 6.12.35-1 | 6.12.35-1 |
| Linux kernel | >= 6578171a7ff0c31dc73258f93da7407510abf085, < a046f183d21ab5ace5a96ece4cf9873a42f003a7 | a046f183d21ab5ace5a96ece4cf9873a42f003a7 |
| Linux kernel | >= 6578171a7ff0c31dc73258f93da7407510abf085, < 98b1d8dc9a3170b2614f1e8c93854e75cdd83980 | 98b1d8dc9a3170b2614f1e8c93854e75cdd83980 |
| Linux kernel | >= 6578171a7ff0c31dc73258f93da7407510abf085, < bfa4d86e130a09f67607482e988313430e38f6c4 | bfa4d86e130a09f67607482e988313430e38f6c4 |
| Linux kernel | >= 6578171a7ff0c31dc73258f93da7407510abf085, < 2a3ad42a57b43145839f2f233fb562247658a6d9 | 2a3ad42a57b43145839f2f233fb562247658a6d9 |
| Linux kernel | >= 6578171a7ff0c31dc73258f93da7407510abf085, < e9994e7b9f7bbb882d13c8191731649249150d21 | e9994e7b9f7bbb882d13c8191731649249150d21 |
| Linux kernel | >= 6578171a7ff0c31dc73258f93da7407510abf085, < ba9db6f907ac02215e30128770f85fbd7db2fcf9 | ba9db6f907ac02215e30128770f85fbd7db2fcf9 |
| Linux kernel | = 4.8 | No fix listed |
| Linux kernel | < 5.15.209 | 5.15.209 |
| Linux kernel | < 6.1.167 | 6.1.167 |
| Linux kernel | < 6.6.95 | 6.6.95 |
| Linux kernel | < 6.12.35 | 6.12.35 |
| Linux kernel | < 6.15.4 | 6.15.4 |
| Linux kernel | < 6.16 | 6.16 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.6 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | All versions | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.6 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.5 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-186.196 | 5.15.0-186.196 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1104.109 | 5.15.0-1104.109 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1106.109 | 5.15.0-1106.109 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 4.8, < 6.6.95 | 6.6.95 |
| Linux kernel | >= 6.7, < 6.12.35 | 6.12.35 |
| Linux kernel | >= 6.13, < 6.15.4 | 6.15.4 |
| Linux kernel | = 6.16-rc1 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-38192 vendor-advisory
- git.kernel.org
- git.kernel.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-7833-1 vendor-advisory
- USN-7834-1 vendor-advisory
- USN-7833-2 vendor-advisory
- USN-7833-3 vendor-advisory
- USN-7833-4 vendor-advisory
- USN-7856-1 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- USN-8575-1 vendor-advisory
- USN-8576-1 vendor-advisory
- USN-8575-2 vendor-advisory
- USN-8576-2 vendor-advisory
- USN-8597-1 vendor-advisory
- USN-8575-3 vendor-advisory
- USN-8610-1 vendor-advisory
- USN-8620-1 vendor-advisory
- USN-8620-2 vendor-advisory
- USN-8620-3 vendor-advisory
- USN-8620-4 vendor-advisory
- USN-8668-1 vendor-advisory
- USN-8668-2 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-20064 third-party-advisory