Linux
bpf: sockmap: fix tail fragment offset in bpf_msg_push_data
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < f14609d8146707452e0822f3c8154674ce677251
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < d81b323af2dcee47573907ccb89c0df9b45cb2e2
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < aeb95146848d12206e1b2cfacd4f40e21ce81d94
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < 96b72672ce849a1402730238e64d9b20bf06a96d
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < 3075c21d2d76c0067f4a382765b43d6cc10470f1
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < 5e19028667963fb371ebb00cecc2a473ef92056b
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < 63f64a510c7917658ddf4d073ece73914ee25346
- >= 6fff607e2f14bd7c63c06c464a6f93b8efbabe28, < f72eed9b84fb771019a955908132410a9ba9ea3f
Fixed in f14609d8146707452e0822f3c8154674ce677251, d81b323af2dcee47573907ccb89c0df9b45cb2e2, aeb95146848d12206e1b2cfacd4f40e21ce81d94, 96b72672ce849a1402730238e64d9b20bf06a96d, 3075c21d2d76c0067f4a382765b43d6cc10470f1, 5e19028667963fb371ebb00cecc2a473ef92056b, 63f64a510c7917658ddf4d073ece73914ee25346, f72eed9b84fb771019a955908132410a9ba9ea3f
- 4.20
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to f14609d8146707452e0822f3c8154674ce677251 or d81b323af2dcee47573907ccb89c0df9b45cb2e2 or aeb95146848d12206e1b2cfacd4f40e21ce81d94 or 96b72672ce849a1402730238e64d9b20bf06a96d or 3075c21d2d76c0067f4a382765b43d6cc10470f1 or 5e19028667963fb371ebb00cecc2a473ef92056b or 63f64a510c7917658ddf4d073ece73914ee25346 or f72eed9b84fb771019a955908132410a9ba9ea3f or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.