{"id":"CVE-2026-72050","state":"PUBLISHED","title":"octeontx2-af: Free BPID bitmap on setup failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-af: Free BPID bitmap on setup failure\n\nnix_setup_bpids() allocates bp->bpids with rvu_alloc_bitmap(), which uses\na plain kcalloc(). If any of the following devm_kcalloc() allocations for\nthe BPID mapping arrays fails, the function returns without freeing the\nbitmap. Free the BPID bitmap before returning from those error paths.","publishedAt":"2026-08-15T05:52:07.709Z","updatedAt":"2026-08-17T05:07:16.287Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"7a939b683a74bd7d7ce4e3b7f696b491c8d71af4","versionType":"git"},{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"19c148cb82d11bb7cc7d86038a94e608a297e63c","versionType":"git"},{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"d0c880c9f4051100517040d065caff60e913b659","versionType":"git"},{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"36323f54cd323122a1be89ab2c316a6e55a94e30","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/marvell/octeontx2/af/rvu_nix.c"]}],"references":["https://git.kernel.org/stable/c/7a939b683a74bd7d7ce4e3b7f696b491c8d71af4","https://git.kernel.org/stable/c/19c148cb82d11bb7cc7d86038a94e608a297e63c","https://git.kernel.org/stable/c/d0c880c9f4051100517040d065caff60e913b659","https://git.kernel.org/stable/c/36323f54cd323122a1be89ab2c316a6e55a94e30"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72050.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72050","state":"PUBLISHED","datePublished":"2026-08-15T05:52:07.709Z","dateUpdated":"2026-08-17T05:07:16.287Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.902Z"},"containers":{"cna":{"title":"octeontx2-af: Free BPID bitmap on setup failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-af: Free BPID bitmap on setup failure\n\nnix_setup_bpids() allocates bp->bpids with rvu_alloc_bitmap(), which uses\na plain kcalloc(). If any of the following devm_kcalloc() allocations for\nthe BPID mapping arrays fails, the function returns without freeing the\nbitmap. Free the BPID bitmap before returning from those error paths."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"7a939b683a74bd7d7ce4e3b7f696b491c8d71af4","versionType":"git"},{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"19c148cb82d11bb7cc7d86038a94e608a297e63c","versionType":"git"},{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"d0c880c9f4051100517040d065caff60e913b659","versionType":"git"},{"version":"d6212d2e41a0cb1ff6b059db79c70752cdafc95e","status":"affected","lessThan":"36323f54cd323122a1be89ab2c316a6e55a94e30","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/marvell/octeontx2/af/rvu_nix.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7a939b683a74bd7d7ce4e3b7f696b491c8d71af4"},{"url":"https://git.kernel.org/stable/c/19c148cb82d11bb7cc7d86038a94e608a297e63c"},{"url":"https://git.kernel.org/stable/c/d0c880c9f4051100517040d065caff60e913b659"},{"url":"https://git.kernel.org/stable/c/36323f54cd323122a1be89ab2c316a6e55a94e30"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:07:16.287Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}