CVE-2026-63926: bpf: sockmap: fix tail fragment offset in bpf_msg_push_data
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bpf: sockmap: fix tail fragment offset in bpf_msg_push_data
When bpf_msg_push_data() inserts data in the middle of a scatterlist entry, it splits the original entry into a left fragment and a right fragment.
The right fragment offset is page-local, but the code advances it with start, which is the message-global insertion point. For inserts into a non-first SG entry, this over-advances the offset and leaves the split layout inconsistent.
Advance the right fragment offset by the fragment-local delta, start - offset, which matches the length removed from the front of the original entry.
The Linux kernel CVE team has assigned CVE-2026-63926 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 5.10.259 with commit f14609d8146707452e0822f3c8154674ce677251 Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 5.15.210 with commit d81b323af2dcee47573907ccb89c0df9b45cb2e2 Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 6.1.176 with commit aeb95146848d12206e1b2cfacd4f40e21ce81d94 Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 6.6.143 with commit 96b72672ce849a1402730238e64d9b20bf06a96d Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 6.12.93 with commit 3075c21d2d76c0067f4a382765b43d6cc10470f1 Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 6.18.35 with commit 5e19028667963fb371ebb00cecc2a473ef92056b Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 7.0.12 with commit 63f64a510c7917658ddf4d073ece73914ee25346 Issue introduced in 4.20 with commit 6fff607e2f14bd7c63c06c464a6f93b8efbabe28 and fixed in 7.1 with commit f72eed9b84fb771019a955908132410a9ba9ea3f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-63926
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/core/filter.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/f14609d8146707452e0822f3c8154674ce677251 https://git.kernel.org/stable/c/d81b323af2dcee47573907ccb89c0df9b45cb2e2 https://git.kernel.org/stable/c/aeb95146848d12206e1b2cfacd4f40e21ce81d94 https://git.kernel.org/stable/c/96b72672ce849a1402730238e64d9b20bf06a96d https://git.kernel.org/stable/c/3075c21d2d76c0067f4a382765b43d6cc10470f1 https://git.kernel.org/stable/c/5e19028667963fb371ebb00cecc2a473ef92056b https://git.kernel.org/stable/c/63f64a510c7917658ddf4d073ece73914ee25346 https://git.kernel.org/stable/c/f72eed9b84fb771019a955908132410a9ba9ea3f