{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138942","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.904Z","datePublished":"2026-11-30T13:26:24.902Z","dateUpdated":"2026-11-30T13:26:24.902Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:26:24.902Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc64/bpf: fix percpu private stack leak on JIT failure\n\nThe existing conditional statement in bpf_int_jit_compile() frees the\npercpu private stack at out_addrs only when the image buffer was never\nallocated.\n\nIf bpf_jit_build_body() fails during a code-generation pass, the\nimage buffer has already been allocated, so !image is false and the\npercpu stack is not freed.\n\nBecause JIT compilation failed, fp->jited remains at 0. The subsequent\nbpf_jit_free() path only frees priv_stack_ptr when fp->jited is set, so\nfreeing is skipped here too, leaking the percpu allocation.\n\nFix implements freeing the private stack whenever fp->jited was not set,\ni.e. compilation did not succeed, instead of keying off !image. !fp->jited\nalready covers the !image case, since image is only NULL on early-failure\npaths where fp->jited is likewise 0."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/net/bpf_jit_comp.c"],"versions":[{"version":"156d985123b6d6e5189cfd0286b93c12167ae798","lessThan":"67511cced5a1b9e4f1787b0ea1e53ca076f42639","status":"affected","versionType":"git"},{"version":"156d985123b6d6e5189cfd0286b93c12167ae798","lessThan":"24affb84d98e6b37b276aa57e5dd25ad93458cea","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/net/bpf_jit_comp.c"],"versions":[{"version":"7.1","status":"affected"},{"version":"0","lessThan":"7.1","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/67511cced5a1b9e4f1787b0ea1e53ca076f42639"},{"url":"https://git.kernel.org/stable/c/24affb84d98e6b37b276aa57e5dd25ad93458cea"}],"title":"powerpc64/bpf: fix percpu private stack leak on JIT failure","x_generator":{"engine":"bippy-1.2.0"}}}}