CVE-2025-38732
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_reject: don't leak dst refcount for loopback packets
recent patches to add a WARN() when replacing skb dst entry found an old bug:
WARNING: include/linux/skbuff.h:1165 skb_dst_check_unset include/linux/skbuff.h:1164 [inline] WARNING: include/linux/skbuff.h:1165 skb_dst_set include/linux/skbuff.h:1210 [inline] WARNING: include/linux/skbuff.h:1165 nf_reject_fill_skb_dst+0x2a4/0x330 net/ipv4/netfilter/nf_reject_ipv4.c:234 [..] Call Trace: nf_send_unreach+0x17b/0x6e0 net/ipv4/netfilter/nf_reject_ipv4.c:325 nft_reject_inet_eval+0x4bc/0x690 net/netfilter/nft_reject_inet.c:27 expr_call_ops_eval net/netfilter/nf_tables_core.c:237 [inline] ..
This is because blamed commit forgot about loopback packets. Such packets already have a dst_entry attached, even at PRE_ROUTING stage.
Instead of checking hook just check if the skb already has a route attached to it.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Netfilter nf_reject leaks dst refcount for loopback packets, causing kernel warning and potential DoS.
Vulnerability
In the Linux kernel, a vulnerability in netfilter's nf_reject module causes a dst refcount leak for loopback packets. The issue arises because loopback packets already have a dst_entry attached at the PRE_ROUTING stage, but the code incorrectly assumes they do not. This leads to a warning when replacing the skb dst entry, as described in the kernel commit that introduced the fix [2].
Exploitation
An attacker with network access can send crafted loopback packets to trigger the bug. No authentication is required, as the vulnerability lies in the kernel's packet processing path. The attack surface is limited to scenarios where netfilter rejection rules are applied to loopback traffic.
Impact
Exploiting this vulnerability results in a kernel warning (WARN()) and a refcount leak. While the warning may be benign in some cases, the refcount leak could lead to resource exhaustion and system instability, potentially causing a denial of service (DoS) condition.
Mitigation
The Linux kernel has addressed this vulnerability in stable releases. The fix commit (82ef97abf227) [2] changes the check to verify if the skb already has a route attached, rather than relying on the hook. Users should apply the latest kernel updates. Additionally, this CVE is listed in a Siemens advisory for SIMATIC CN 4100 [1].
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- Linux/Linuxv5Range: 5.9
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
10- git.kernel.org/stable/c/51e8531371f90bee742c63775c9a568e5d6bf3c5nvdPatch
- git.kernel.org/stable/c/7b8b503c06274ef3c6c1a107743f1ec0d0a53ef8nvdPatch
- git.kernel.org/stable/c/82ef97abf22790182f7d433c74960dfd61b99c33nvdPatch
- git.kernel.org/stable/c/91a79b792204313153e1bdbbe5acbfc28903b3a5nvdPatch
- git.kernel.org/stable/c/a0a3ace2a57887dac1e7c9a724846040c3e31868nvdPatch
- git.kernel.org/stable/c/b32e1590a8d22cf7d7f965e46d5576051acf8e42nvdPatch
- git.kernel.org/stable/c/b7a885ba25960c91db237c3f83b4285156789bcenvdPatch
- lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlnvdMailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlnvdMailing ListThird Party Advisory
- cert-portal.siemens.com/productcert/html/ssa-032379.htmlnvd
News mentions
1- Siemens SIMATICCISA ICS Advisories