{"id":"CVE-2026-139319","state":"PUBLISHED","title":"bpf: Don't let bpf_skb_adjust_room() use up the MSS","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let bpf_skb_adjust_room() use up the MSS\n\nWhen bpf_skb_adjust_room() grows a TCP GSO packet without\nBPF_F_ADJ_ROOM_FIXED_GSO, gso_size is lowered by the number of bytes\nadded. Nothing looks at how large it is.\n\ngso_size is the size of the segments the peer has sent if the packet\ncomes out of GRO, and what the sender has written into the virtio header\nif it comes from a tun device or a packet socket. If it equals len_diff\nthe result is 0, and a packet of up to 64 KB is no GSO packet any more. If\nit is smaller, the 16 bit value wraps around.\n\nOne less than len_diff gives GSO_BY_FRAGS. skb_segment() then takes the\nlength of each segment from the frag_list. A packet with more than 64 KB\nof payload gets that far, and one from a tun device has no frag_list:\n\n  BUG: KASAN: null-ptr-deref in skb_segment+0xcf1/0x1a90\n  BUG: kernel NULL pointer dereference, address: 0000000000000070\n   tcp_gso_segment+0x1be/0x9f0\n   inet_gso_segment+0x288/0x740\n   inet_gso_segment+0x288/0x740\n   skb_mac_gso_segment+0x179/0x2e0\n\nWhat is left must not be less than TCP_MIN_GSO_SIZE either. The stack\nrelies on that for the number of segments to fit into gso_segs, see\ncommit c27c449d455a (\"virtio-net: Ensure that TCP packets don't overflow\ngso_segs\").\n\nRefuse to grow a packet that would end up with less, with the error that\nother packets which cannot be adjusted get.","publishedAt":"2026-11-30T13:33:39.831Z","updatedAt":"2026-11-30T13:33:39.831Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"2df20e0bce68d7f478bb4d937b61b6008efe1e30","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"919fe7f3c8ef3ae55a44dc1743e11f74278a9a63","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"55b124b77ae8ae5520164cd1dd4df9faf44f4a84","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"b97bee37e8f90ed346efa3445e8d3d5842feb4bf","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"2745c446f1b5d6effae5da90b12f18b60ee54f35","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"12d07c38e1b0f79e48a37abd7103194212f2da8c","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":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/2df20e0bce68d7f478bb4d937b61b6008efe1e30","https://git.kernel.org/stable/c/919fe7f3c8ef3ae55a44dc1743e11f74278a9a63","https://git.kernel.org/stable/c/55b124b77ae8ae5520164cd1dd4df9faf44f4a84","https://git.kernel.org/stable/c/b97bee37e8f90ed346efa3445e8d3d5842feb4bf","https://git.kernel.org/stable/c/2745c446f1b5d6effae5da90b12f18b60ee54f35","https://git.kernel.org/stable/c/12d07c38e1b0f79e48a37abd7103194212f2da8c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139319.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139319","state":"PUBLISHED","datePublished":"2026-11-30T13:33:39.831Z","dateUpdated":"2026-11-30T13:33:39.831Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.926Z"},"containers":{"cna":{"title":"bpf: Don't let bpf_skb_adjust_room() use up the MSS","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let bpf_skb_adjust_room() use up the MSS\n\nWhen bpf_skb_adjust_room() grows a TCP GSO packet without\nBPF_F_ADJ_ROOM_FIXED_GSO, gso_size is lowered by the number of bytes\nadded. Nothing looks at how large it is.\n\ngso_size is the size of the segments the peer has sent if the packet\ncomes out of GRO, and what the sender has written into the virtio header\nif it comes from a tun device or a packet socket. If it equals len_diff\nthe result is 0, and a packet of up to 64 KB is no GSO packet any more. If\nit is smaller, the 16 bit value wraps around.\n\nOne less than len_diff gives GSO_BY_FRAGS. skb_segment() then takes the\nlength of each segment from the frag_list. A packet with more than 64 KB\nof payload gets that far, and one from a tun device has no frag_list:\n\n  BUG: KASAN: null-ptr-deref in skb_segment+0xcf1/0x1a90\n  BUG: kernel NULL pointer dereference, address: 0000000000000070\n   tcp_gso_segment+0x1be/0x9f0\n   inet_gso_segment+0x288/0x740\n   inet_gso_segment+0x288/0x740\n   skb_mac_gso_segment+0x179/0x2e0\n\nWhat is left must not be less than TCP_MIN_GSO_SIZE either. The stack\nrelies on that for the number of segments to fit into gso_segs, see\ncommit c27c449d455a (\"virtio-net: Ensure that TCP packets don't overflow\ngso_segs\").\n\nRefuse to grow a packet that would end up with less, with the error that\nother packets which cannot be adjusted get."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"2df20e0bce68d7f478bb4d937b61b6008efe1e30","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"919fe7f3c8ef3ae55a44dc1743e11f74278a9a63","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"55b124b77ae8ae5520164cd1dd4df9faf44f4a84","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"b97bee37e8f90ed346efa3445e8d3d5842feb4bf","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"2745c446f1b5d6effae5da90b12f18b60ee54f35","versionType":"git"},{"version":"2be7e212d5419a400d051c84ca9fdd083e5aacac","status":"affected","lessThan":"12d07c38e1b0f79e48a37abd7103194212f2da8c","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":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","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/2df20e0bce68d7f478bb4d937b61b6008efe1e30"},{"url":"https://git.kernel.org/stable/c/919fe7f3c8ef3ae55a44dc1743e11f74278a9a63"},{"url":"https://git.kernel.org/stable/c/55b124b77ae8ae5520164cd1dd4df9faf44f4a84"},{"url":"https://git.kernel.org/stable/c/b97bee37e8f90ed346efa3445e8d3d5842feb4bf"},{"url":"https://git.kernel.org/stable/c/2745c446f1b5d6effae5da90b12f18b60ee54f35"},{"url":"https://git.kernel.org/stable/c/12d07c38e1b0f79e48a37abd7103194212f2da8c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:39.831Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}