{"id":"CVE-2026-143360","state":"PUBLISHED","title":"bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS\n\nWhen bpf_skb_adjust_room() shrinks a TCP GSO skb, it adds the number of\nremoved bytes to gso_size. gso_size has 16 bits, and nothing checks the\nsum. Thus gso_size can wrap to 0 or to a small size, or it can be\nGSO_BY_FRAGS. GSO_BY_FRAGS is not a size. It tells skb_segment() to read\nthe length of each segment from the frag_list. If the TCP GSO skb has no\nfrag_list, skb_segment() dereferences a NULL pointer.\n\nReturn -ENOTSUPP and do not change the skb if the sum is GSO_BY_FRAGS or\nlarger. With BPF_F_ADJ_ROOM_FIXED_GSO the helper does not change gso_size,\nso it shrinks the skb as before.","publishedAt":"2026-12-03T09:22:14.286Z","updatedAt":"2026-12-03T09:22:14.286Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"7ce80a72fc14888d835bae1e7a981b35a2837a23","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"991d26913d1fd607d7052a56c7649d0e40d91fca","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"d2f87ad5b7b7bdf1dab6ecc2853f0357e070733e","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"8ff854b515dfd559e14bc9898cb84543fcc6a3da","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"e4384414432b98e93e6413856064b7c165be1a56","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"6d8118937ba477e03fa2e94e9bd9abac7291a2a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]}],"references":["https://git.kernel.org/stable/c/7ce80a72fc14888d835bae1e7a981b35a2837a23","https://git.kernel.org/stable/c/991d26913d1fd607d7052a56c7649d0e40d91fca","https://git.kernel.org/stable/c/d2f87ad5b7b7bdf1dab6ecc2853f0357e070733e","https://git.kernel.org/stable/c/8ff854b515dfd559e14bc9898cb84543fcc6a3da","https://git.kernel.org/stable/c/e4384414432b98e93e6413856064b7c165be1a56","https://git.kernel.org/stable/c/6d8118937ba477e03fa2e94e9bd9abac7291a2a2"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143360.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143360","state":"PUBLISHED","datePublished":"2026-12-03T09:22:14.286Z","dateUpdated":"2026-12-03T09:22:14.286Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.371Z"},"containers":{"cna":{"title":"bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS\n\nWhen bpf_skb_adjust_room() shrinks a TCP GSO skb, it adds the number of\nremoved bytes to gso_size. gso_size has 16 bits, and nothing checks the\nsum. Thus gso_size can wrap to 0 or to a small size, or it can be\nGSO_BY_FRAGS. GSO_BY_FRAGS is not a size. It tells skb_segment() to read\nthe length of each segment from the frag_list. If the TCP GSO skb has no\nfrag_list, skb_segment() dereferences a NULL pointer.\n\nReturn -ENOTSUPP and do not change the skb if the sum is GSO_BY_FRAGS or\nlarger. With BPF_F_ADJ_ROOM_FIXED_GSO the helper does not change gso_size,\nso it shrinks the skb as before."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"7ce80a72fc14888d835bae1e7a981b35a2837a23","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"991d26913d1fd607d7052a56c7649d0e40d91fca","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"d2f87ad5b7b7bdf1dab6ecc2853f0357e070733e","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"8ff854b515dfd559e14bc9898cb84543fcc6a3da","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"e4384414432b98e93e6413856064b7c165be1a56","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"6d8118937ba477e03fa2e94e9bd9abac7291a2a2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/filter.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7ce80a72fc14888d835bae1e7a981b35a2837a23"},{"url":"https://git.kernel.org/stable/c/991d26913d1fd607d7052a56c7649d0e40d91fca"},{"url":"https://git.kernel.org/stable/c/d2f87ad5b7b7bdf1dab6ecc2853f0357e070733e"},{"url":"https://git.kernel.org/stable/c/8ff854b515dfd559e14bc9898cb84543fcc6a3da"},{"url":"https://git.kernel.org/stable/c/e4384414432b98e93e6413856064b7c165be1a56"},{"url":"https://git.kernel.org/stable/c/6d8118937ba477e03fa2e94e9bd9abac7291a2a2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:14.286Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}