{"id":"CVE-2026-139103","state":"PUBLISHED","title":"eth: bnxt: don't leak buffers when XDP agg buffer allocation fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: bnxt: don't leak buffers when XDP agg buffer allocation fails\n\nIf a replacement agg buffer can't be allocated for a packet received\nwith XDP attached, bnxt_rx_pkt() drops the packet without returning\nits head buffer to the ring. The head buffer leaks, and since rx_prod\nstill advances, the device gets a BD with a stale DMA address which\npoints at a buffer the driver no longer owns. When that BD completes\nthe driver finds no buffer in the slot.\n\nThe agg buffers consumed before the failing one have already been\nreplaced on the agg ring, they are referenced only by the frags of\nthe xdp_buff, which nobody frees. bnxt_xdp_buff_frags_free() would\nskip them since the frags flag is set only on success, so set it\nupfront.\n\nPointed out in LLM review of the first patch of the series.\nTested on a BCM57504 at MTU 9000 with a frags-capable XDP_PASS\nprogram, receiving 8000B ICMPv6 echo requests (a head and two agg\nbuffers each) while page_pool_alloc_netmems() called from\nbnxt_rx_agg_netmems_xdp() failed half of the time (bpftrace\noverride()). 44.7k packets were dropped, the page pools' inflight\ncount stayed flat and there were no KASAN or DEBUG_PAGEALLOC splats.","publishedAt":"2026-11-30T13:31:36.269Z","updatedAt":"2026-11-30T13:31:36.269Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"6ea0a69fb3a42a8f09f7b1f62d236818a4a20de5","versionType":"git"},{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"59ef0dc55089a6bfc711a5d2367c20912e1495d2","versionType":"git"},{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"e83550fdb3eccad6095d70d2b07571b31475d546","versionType":"git"},{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"1b2f02fb4ba92d01603c8261c94be8d348de65b0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.12.120","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.c"]}],"references":["https://git.kernel.org/stable/c/6ea0a69fb3a42a8f09f7b1f62d236818a4a20de5","https://git.kernel.org/stable/c/59ef0dc55089a6bfc711a5d2367c20912e1495d2","https://git.kernel.org/stable/c/e83550fdb3eccad6095d70d2b07571b31475d546","https://git.kernel.org/stable/c/1b2f02fb4ba92d01603c8261c94be8d348de65b0"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139103.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139103","state":"PUBLISHED","datePublished":"2026-11-30T13:31:36.269Z","dateUpdated":"2026-11-30T13:31:36.269Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.914Z"},"containers":{"cna":{"title":"eth: bnxt: don't leak buffers when XDP agg buffer allocation fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: bnxt: don't leak buffers when XDP agg buffer allocation fails\n\nIf a replacement agg buffer can't be allocated for a packet received\nwith XDP attached, bnxt_rx_pkt() drops the packet without returning\nits head buffer to the ring. The head buffer leaks, and since rx_prod\nstill advances, the device gets a BD with a stale DMA address which\npoints at a buffer the driver no longer owns. When that BD completes\nthe driver finds no buffer in the slot.\n\nThe agg buffers consumed before the failing one have already been\nreplaced on the agg ring, they are referenced only by the frags of\nthe xdp_buff, which nobody frees. bnxt_xdp_buff_frags_free() would\nskip them since the frags flag is set only on success, so set it\nupfront.\n\nPointed out in LLM review of the first patch of the series.\nTested on a BCM57504 at MTU 9000 with a frags-capable XDP_PASS\nprogram, receiving 8000B ICMPv6 echo requests (a head and two agg\nbuffers each) while page_pool_alloc_netmems() called from\nbnxt_rx_agg_netmems_xdp() failed half of the time (bpftrace\noverride()). 44.7k packets were dropped, the page pools' inflight\ncount stayed flat and there were no KASAN or DEBUG_PAGEALLOC splats."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"6ea0a69fb3a42a8f09f7b1f62d236818a4a20de5","versionType":"git"},{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"59ef0dc55089a6bfc711a5d2367c20912e1495d2","versionType":"git"},{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"e83550fdb3eccad6095d70d2b07571b31475d546","versionType":"git"},{"version":"4c6c123c9af9c94be4726134ca72ba5a0be0ebd0","status":"affected","lessThan":"1b2f02fb4ba92d01603c8261c94be8d348de65b0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/bnxt/bnxt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.12.120","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.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6ea0a69fb3a42a8f09f7b1f62d236818a4a20de5"},{"url":"https://git.kernel.org/stable/c/59ef0dc55089a6bfc711a5d2367c20912e1495d2"},{"url":"https://git.kernel.org/stable/c/e83550fdb3eccad6095d70d2b07571b31475d546"},{"url":"https://git.kernel.org/stable/c/1b2f02fb4ba92d01603c8261c94be8d348de65b0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:36.269Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.12.120"},{"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"}}}}}