Article View: linux.kernel.netdev
Article #18036Re: [PATCH net] net/sched: act_csum: bound the IPv6 jumbo payload length
From: Piyus Kedia
Date: Tue, 17 Nov 2026 18:00
Date: Tue, 17 Nov 2026 18:00
144 lines
17341 bytes
17341 bytes
Hello, # Revised Impact Assessment: A Kernel Memory Read Primitive We need to correct our earlier assessment of this vulnerability. Our first report classified it as an availability issue; the second described it as a 16-bit oracle. Both understated its impact. We have now demonstrated a working, byte-exact kernel memory read primitive. A single packet can disclose 14 contiguous bytes of out-of-bounds kernel memory at an attacker-selected offset. The mechanism and its limitations are described below. ## 1. The root cause: An unchecked IPv6 Jumbo Payload length IPv6 normally uses a 16-bit payload length field, which supports payloads up to 65,535 bytes. For larger packets, RFC 2675 defines a Jumbo Payload option in the hop-by-hop header. In this case, the 16-bit field is set to zero and the actual length is specified in a 32-bit field. Our packet exploits this mechanism by declaring a payload length of 4,294,967,250 bytes, despite carrying only 56 bytes (70 bytes including Ethernet). The packet is structurally valid, but its declared length is inconsistent with its actual size. In `act_csum`, `tcf_csum_ipv6()` reads the Jumbo Payload option and uses its value as the IPv6 payload length. This value is then passed to the UDP-Lite checksum handler without validating it against the actual packet size. This is the root cause: **a packet-controlled length is trusted without being checked against the available packet data.** ## 2. Why the existing checks fail Three checks are intended to protect the checksum operation, but none of the checks catches this condition. - **Packet bounds check:** `pskb_may_pull()` receives a length calculation that overflows a 32-bit integer. Instead of checking for more than four billion bytes, it effectively checks for just 8 bytes. - **Header length check:** The declared length is larger than the header length, so this check passes. - **Checksum coverage check:** The UDP-Lite coverage is compared against the inflated payload length and is therefore accepted. Consequently, `csum_partial()` is asked to read 200 bytes starting at the UDP header, even though the packet is only 70 bytes long. This results in an out-of-bounds read beyond the 704-byte `skbuff_small_head` object. Importantly, a large UDP-Lite coverage value alone is not sufficient to trigger the issue. The oversized Jumbo Payload declaration is what bypasses the bounds checks. ## 3. Turning the checksum into a memory read A checksum by itself does not reveal memory contents. `csum_partial()` returns a 16-bit sum, which provides very limited information about the bytes it processes. However, the Internet checksum is linear. By obtaining two checksums with coverage lengths differing by two bytes, we can subtract the results and recover the intervening 16-bit word. Repeating this process allows individual words to be recovered. We verified the arithmetic against known memory contents, recovering all 131 test words without error. ## 4. Why the read requires a single packet Our earlier attempts used two separate packets to obtain the two checksums. This did not work reliably because each packet gets a new socket buffer allocation, and the memory contents change between allocations. The solution is to obtain both checksums during a single `tc` filter execution, using multiple actions on the same packet: - Compute the checksum. - Mirror the packet to capture the result. - Adjust the UDP-Lite coverage. - Compute the next checksum and mirror it again. This allows multiple checksum observations of the same memory region without allocating a new packet buffer between observations. The kernel's action limit restricts how many observations can be collected. We reliably obtained eight checksums, allowing us to recover seven consecutive 16-bit words, or 14 bytes, from one packet. ## 5. What we have demonstrated The following results were obtained using an unprivileged user (UID 1000) inside a user namespace with `CAP_NET_ADMIN`. The kernel heap itself is not namespaced. | Test | Result | |---|---| | Recovery against known memory | 131/131 words correct | | Consecutive words from one packet | 7/7 words recovered exactly | | Out-of-bounds reads at coverage 1024, 4096 and 16384 | Non-zero, varying memory contents | | KASAN validation | Confirmed slab out-of-bounds read in `csum_partial()` | The demonstrated capability is: **An unprivileged, repeatable, byte-exact read of 14 contiguous bytes of kernel memory per packet, at an attacker-selected offset within the 64 KB reachable region beyond a 704-byte slab object.** ## 6. Limitations: Can multiple reads be combined? We have not demonstrated that reads from separate packets can be combined into a larger, contiguous memory image. Our experiments showed that successive packets did not reliably access the same memory locations. Even overlapping read windows produced no matching words in the tested configuration. This is significant because it means we cannot claim that sending approximately 4,682 packets would recover 64 KB of kernel memory. However, these experiments were conducted on a debug kernel configured with KASAN, KFENCE, SLUB_DEBUG and memory initialization options. These features alter allocator behaviour and can significantly affect memory reuse. We have not yet repeated the experiments on a production- configured kernel. Therefore, the inability to combine reads should be treated as an unverified limitation, not a demonstrated property of the vulnerability. ## 7. Conclusion and disclosure status The impact assessment should be based on what we have demonstrated, rather than what we suspect may be possible. We have established a repeatable, byte-exact kernel memory disclosure primitive that works without root privileges, within the stated user- namespace configuration. We have not established whether successive reads can be combined to reconstruct larger regions of kernel memory. We are holding back the detailed reproduction procedure and programs until the fix is merged. The patch has already been submitted upstream: - **v1:** https://lore.kernel.org/all/20261112075445.3555341-1-piyus@iiitd.ac.in/ - **v2:** https://lore.kernel.org/all/20261116182108.2581258-2-piyus@iiitd.ac.in/ Version 2 contains the same patch as version 1, with an expanded changelog. Thanks and regards, Kapil Vaswani Piyus Kedia
Technical Details
Message-ID:
<20261117180012.353227-1-piyus@iiitd.ac.in>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365522-linux-kernel-netdev=dewy.ruReferences:
<20261112075159.3552470-1-piyus@iiitd.ac.in>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365522-linux-kernel-netdev=dewy.ru
From: piyus@iiitd.ac.in (Piyus Kedia)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/sched: act_csum: bound the IPv6 jumbo payload length
Date: Tue, 17 Nov 2026 23:30:12 +0530
Organization: Usenet Network
Message-ID: <20261117180012.353227-1-piyus@iiitd.ac.in>
References: <20261112075159.3552470-1-piyus@iiitd.ac.in>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2394716"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Reoc/BoSmzpakKBO2tNa6RC5KWI= sha256:JJ13FH4ybJ7R9birKZAABbYt5/qeyXFwlSiZpjlw0ZQ=
sha1:Z/NfJJ7xOTtQ+Hpst3JT7uYCIV8= sha256:EJAu5OtG9k81c0PUgDruS7vwEGoqVALGktT+jsa6Nd4=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 707B6115030; Tue, 17 Nov 2026 21:01:03 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Status: No, score=-2.75 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=neutral
reason="invalid (public key: DNS error: query timed out)"
header.d=iiitd.ac.in
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id xtgJH7lIZjV6;
Tue, 17 Nov 2026 21:00:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365522-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=iiitd.ac.in
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 846FF11502D; Tue, 17 Nov 2026 21:00:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 7ADC23A6C4; Tue, 17 Nov 2026 18:00:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794938429;
b=wjOE96IeI0kUr0UCG3iBc8wXeV8EnrSWhdpH+Ef+med2gMb+fYqGWSTMkTP8T+i7f9rI
MEZr5ACPu0lJ7UPw8VT/KuAU2WCWRUcbELxhNBpAdaVWquJgO8Y7GMFE/IShzAZsZ7Yiu
5Z35cn0uku5iaq/M9UJiWu1be81x2sQzSeRcWDTRusvBhG+tOVxWYQQHq96ywGvzmavq5
kXX2ZeiHlzXFBBLtldHp2J5nmKKxV5/SVBwd8ZHohTwgRgdeH+PM9xJoydu9cvki65R3K
RnyL3/uRlezcIwMWWsrOwG3HGdiEy/zJ1x0ts4p2b6ZVKKT61rUaN3rmxqcfj7h1mGQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794938429;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-Id:
X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Transfer-Encoding;
bh=jeLpAGkjUmgjyXxw2yEEozxedkII8BrSx+c1KwTE3W0=;
b=ho3vDSdr0+gSRPRM+AFKSOfwvT5BGCUTrbhD5lDRm+OMZmlfgjpVHVwLSSFs17D1vlj1
9/cwH9YLR9qzEvuyiyRk2kvdjz8v7L9C7PmnZ5PSoxuJ0w17q4wKtko/QyoKwTrxhWAbL
lqSoaTZNOHzaEqhJTxp0ZI0zeJEQ30wbt152twK6uJ8EzV61zwaiKRsQw324aT5vukHFD
pUlvs8OxiR5EV6/MYZJTHZuk4d4gUBBOGrtrgp7jaXZEZtcjoRiWMPD9Rpupfqk/Qhxug
XK4Uqs3yt6BYdXBQtfdF6Bb7zSJ5ldhsPiJ5Uy4scVk1S1yTAD/JLqS4yuhLbDsg86Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=iiitd.ac.in header.i=@iiitd.ac.in header.a=rsa-sha256 header.s=google header.b=B7V9UVxW;
dmarc=none header.from=iiitd.ac.in;
spf=pass smtp.mailfrom=iiitd.ac.in;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 528D2606A336;
Tue, 17 Nov 2026 18:00:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=iiitd.ac.in header.i=@iiitd.ac.in header.a=rsa-sha256 header.s=google header.b=B7V9UVxW
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.178
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794938423;
b=hhp3vO10Bl0KbmZLQiTJU+kWHYn4YUJT0rHsdlmCKFTQdHUR/Ib0IVQ+7zcUB41rp+Zc
nzYmfCXAJUt2uidfMa/VORUO6wX7tv0TavUl1rAz/mz2uLceU0a0E4X/iompsUeWnPJvw
2Z61gphXhip3o15Tl1R1LnsTDENN6yXxUGI+HNdf8Q8BuAdwj57nU0agVTPERjt3XoLfr
HhbxpTNx+XYZfQVgEqQoh+hAIdrgO5B5IX77eN97lINcZ8PUTyqNtMX8pmpNjAlXP54a+
RWB1w9ZdE84dpooICDwoZoaB9qpczBG3xV8j46WHtgG30+twT27nLM5IDX0yXFXzzoA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794938423;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:
MIME-Version:Content-Transfer-Encoding;
bh=jeLpAGkjUmgjyXxw2yEEozxedkII8BrSx+c1KwTE3W0=;
b=DAojOaYlzc5jXTS+lguYdhNKOpgS6dgH/EgVwnEwEQz/Sx9/9iAqRoJHMEVhaexMpdvy
oFZE2y2mn5U0DhE8zmcude1xgJ34iW+FdffXOIOBg9leu4ABQwWwobzdMgPXPgkZbS6kq
csQXZ0Vk88/Dz7eB4GsMtLMxMxF//MNa+ZcvMHUm6376DaVo73ZSR4HtL0KWUdsA1XU2R
553c5m9+q4m0gxwNEpTL3nAtfCqiLOMwKxImSP24Ztv2o6cQMR80bXBfR+H4GnBBaHtsD
5xIVH4qxIHnG2gyTk1pZQcsc87Yvg1sJTfqi007RbaWS1xyoPjymkp+m9iNFNm340ig==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=iiitd.ac.in;
spf=pass smtp.mailfrom=iiitd.ac.in;
dkim=pass header.d=iiitd.ac.in header.i=@iiitd.ac.in header.a=rsa-sha256 header.s=google header.b=B7V9UVxW;
arc=none smtp.remote-ip=209.85.214.178
X-Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84F1E606A330
for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 18:00:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84F1E606A330
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iiitd.ac.in
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iiitd.ac.in
X-Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2e9eb579c0eso130445ad.3
for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 10:00:21 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=iiitd.ac.in; s=google; t=1794938421; x=1795543221; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=jeLpAGkjUmgjyXxw2yEEozxedkII8BrSx+c1KwTE3W0=;
b=B7V9UVxWTVS+HGI3zKBubiY3nTnLBrFUmnxkZE0WByRcNYisE2EBXk4joloCo2h2CY
koFpb+yxnDv2TiHvQA39BlMQ99EMsG29Cg/q7Ex39ZsjMCkmdDuREOpIEEkS4FHq3+7U
aBLstqowtkFkeQbNtqnS7SbcmUxaBRGa8GDhA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794938421; x=1795543221;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=jeLpAGkjUmgjyXxw2yEEozxedkII8BrSx+c1KwTE3W0=;
b=Vk08XCOVxBiYwOE1jgdxL7lKXsd3y9nkzeYCi+8stD8W7t1UBAluVcM0oYKtT4odEp
H8bdSqi/+QAsUlPiP5Ocy9TxBL9AsHodi25Veji+vvxXRgaULHjfQirjASqGicUO7KX8
+9byZhIkxqzN6UoUZdOqUzP4Sr6+Aso8cRa0SDSCLDFcl6dFSLAI673mrNHMWsmdlad/
Hr53qx/IIMh7GtCbiUMahOTviMaw3TArZXCZixRMTiC5Vo8NrGGu2dJ4LckIrNs0n8aR
mHRF7XPXDZgnrauxlm+pJIt2paMI0qjHRkq9hDA6g8dWvJpOlrg+XOEb0/8sd2a5C7SV
0yYQ==
X-Forwarded-Encrypted: i=1; AL+hErE9tif50lihP7vLz+VBFq+obJXnPYZZBSSqV6GuLX7v05GJI3aswjU5xjMA3mqIRiipaymgTEI=@vger.kernel.org
X-Gm-Message-State: APuU4Z8+GAPsy1kp7Jr+38+D7H7PIkDGYcGrD0XzhjWk0Lxj17KIcH2D
AFV06Is1253bK47weLVONs0uJgLQPJ98R5w0EF8bYphFV2oz2o/dZmKF6AnA6sfRCJ3SZ5QCNNR
L+YosUE1XqA==
X-Gm-Gg: AZFdTZcQBLueYN5CLsFxGY96GyWsSh3SBrYjiX+oHDNRwejbwha3BKfw4KpOsQiarVS
5sueeBxWJO57cCeBdFIa2zJRu9aHgFEnK9ygmFPFYERuYa4KiRJB416suVM+OGOKSSMmHSxQDU1
slOMgoU/m+AdaXuXppzzkFxGU6geO4oLr695cVvYryvlr8lV/sAD2Sej0S//qaIRrUiIJJBvzD5
M/sQHgm4JxsBvG2pcKPDSVc9K1wTTMgRI9yDMVvhAxOuYVK9EgK19ft2k4RCdCnuca9fjrjBZAm
iBTty+/Xk1beyC5Uyihshj2rv0CubnUj43gzD1jK3S1vqimjIg+XKAGLFiJFnlQ7V8KC+kHp3x6
P8vx0UQbXXmCgGnORHPXCwcdv0srbGqgHs+9Buo5G3rUvU5PyyLJPUJNeS15Uhsy07Ld9QrNCRX
DSE5rofyHuVFnTagK4lKPlG0+yqjSEURecA4ncf8Kku3B+UKA6Yk4H8A+IJUMDzaT7jrEztWqPi
DTCyOIVwEXEWy74O/ia5BTgyOO9NoggvvKFylxYhvO+JHcoS8eLRI5wJfVp8HM+nJ08tmeScuSp
Z/HggGcaIPJcafqVn9g22OcfCiu4hb4oGb3cPFRLfmeDBjrxfiLA2l0STuFhcokTiSLvJ6qa5YJ
0aQfyjqU+H6Z9vcznd71Y78f9xNapljVBn6RDSXmnqsxrZeIUJ7cJrzg8OSI4mgmKllYQrXptsy
XvJdfWmSG3UQ==
X-Received: by 2002:a17:902:f652:b0:2ed:218:6043 with SMTP id d9443c01a7336-2eff754502fmr581835ad.59.1794938420590;
Tue, 17 Nov 2026 10:00:20 -0800 (PST)
X-Received: from iiitd-S2600STB.iiitd.edu.in ([103.25.231.160])
by smtp.gmail.com with ESMTPSA id d9443c01a7336-2eff62833b1sm1068085ad.59.2026.11.17.10.00.16
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 17 Nov 2026 10:00:19 -0800 (PST)
X-Cc: davem@davemloft.net,
edumazet@kernel.org,
horms@kernel.org,
jhs@mojatatu.com,
jiri@resnulli.us,
kapil@presceralabs.ai,
kuba@kernel.org,
linux-kernel@vger.kernel.org,
netdev@vger.kernel.org,
pabeni@redhat.com
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <20261112075159.3552470-1-piyus@iiitd.ac.in>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list