VYPR
Medium severity5.5NVD Advisory· Published Sep 5, 2025· Updated May 12, 2026

CVE-2025-38732

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

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

10

News mentions

1