{"id":"CVE-2026-139102","state":"PUBLISHED","title":"eth: bnxt: free XDP frags when xdp_do_redirect() fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: bnxt: free XDP frags when xdp_do_redirect() fails\n\nWhen xdp_do_redirect() fails bnxt_rx_xdp() recycles the head page but\nnot the frags of a multi-buffer frame. Their agg ring slots have\nalready been refilled, so the pages leak, and the page pool can't be\ndestroyed until they are returned, which will never happen. Redirect\nto an AF_XDP socket in copy mode fails this way with -ENOMEM whenever\nthe socket's fill ring runs out of buffers.\nA socket bound without XDP_USE_SG also fails with -ENOSPC for every\nframe that doesn't fit in a single chunk.\n\nAll the other drop paths in this function free the frags.\n\nPointed out in LLM review of the first patch of the series.\nTested on a BCM57504 at MTU 9000 by redirecting 60k 8000B ICMPv6\necho requests (a head and two agg buffers each) to lo, which can't\ntransmit XDP frames. The page pools' inflight count stayed flat\nrather than growing by two pages per frame.","publishedAt":"2026-11-30T13:31:35.710Z","updatedAt":"2026-11-30T13:31:35.710Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"dc0bad9279cb1a899120219895e086896545153d","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"a7483cb7fff5ab02596bd62c335bd2cd7a30cddb","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"00017064ceb31e1a2fc4cb2161a80273b134a4df","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"39b324489666914165ec99719c3167758eebeb3f","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"bd56d9c36a640d7540a2313d5728c210b029255d","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"c10f3420d59859df107838aa97b49357616d9b47","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","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":["drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c"]}],"references":["https://git.kernel.org/stable/c/dc0bad9279cb1a899120219895e086896545153d","https://git.kernel.org/stable/c/a7483cb7fff5ab02596bd62c335bd2cd7a30cddb","https://git.kernel.org/stable/c/00017064ceb31e1a2fc4cb2161a80273b134a4df","https://git.kernel.org/stable/c/39b324489666914165ec99719c3167758eebeb3f","https://git.kernel.org/stable/c/bd56d9c36a640d7540a2313d5728c210b029255d","https://git.kernel.org/stable/c/c10f3420d59859df107838aa97b49357616d9b47"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139102.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139102","state":"PUBLISHED","datePublished":"2026-11-30T13:31:35.710Z","dateUpdated":"2026-11-30T13:31:35.710Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.914Z"},"containers":{"cna":{"title":"eth: bnxt: free XDP frags when xdp_do_redirect() fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: bnxt: free XDP frags when xdp_do_redirect() fails\n\nWhen xdp_do_redirect() fails bnxt_rx_xdp() recycles the head page but\nnot the frags of a multi-buffer frame. Their agg ring slots have\nalready been refilled, so the pages leak, and the page pool can't be\ndestroyed until they are returned, which will never happen. Redirect\nto an AF_XDP socket in copy mode fails this way with -ENOMEM whenever\nthe socket's fill ring runs out of buffers.\nA socket bound without XDP_USE_SG also fails with -ENOSPC for every\nframe that doesn't fit in a single chunk.\n\nAll the other drop paths in this function free the frags.\n\nPointed out in LLM review of the first patch of the series.\nTested on a BCM57504 at MTU 9000 by redirecting 60k 8000B ICMPv6\necho requests (a head and two agg buffers each) to lo, which can't\ntransmit XDP frames. The page pools' inflight count stayed flat\nrather than growing by two pages per frame."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"dc0bad9279cb1a899120219895e086896545153d","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"a7483cb7fff5ab02596bd62c335bd2cd7a30cddb","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"00017064ceb31e1a2fc4cb2161a80273b134a4df","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"39b324489666914165ec99719c3167758eebeb3f","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"bd56d9c36a640d7540a2313d5728c210b029255d","versionType":"git"},{"version":"a7559bc8c17c3f9a91dcbeefe8642ba757fd09e8","status":"affected","lessThan":"c10f3420d59859df107838aa97b49357616d9b47","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","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":["drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/dc0bad9279cb1a899120219895e086896545153d"},{"url":"https://git.kernel.org/stable/c/a7483cb7fff5ab02596bd62c335bd2cd7a30cddb"},{"url":"https://git.kernel.org/stable/c/00017064ceb31e1a2fc4cb2161a80273b134a4df"},{"url":"https://git.kernel.org/stable/c/39b324489666914165ec99719c3167758eebeb3f"},{"url":"https://git.kernel.org/stable/c/bd56d9c36a640d7540a2313d5728c210b029255d"},{"url":"https://git.kernel.org/stable/c/c10f3420d59859df107838aa97b49357616d9b47"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:35.710Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}