{"id":"CVE-2026-138942","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:55.153","lastModified":"2026-11-30T14:17:55.153","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["arch/powerpc/net/bpf_jit_comp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"156d985123b6d6e5189cfd0286b93c12167ae798","lessThan":"67511cced5a1b9e4f1787b0ea1e53ca076f42639","versionType":"git","status":"affected"},{"version":"156d985123b6d6e5189cfd0286b93c12167ae798","lessThan":"24affb84d98e6b37b276aa57e5dd25ad93458cea","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["arch/powerpc/net/bpf_jit_comp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.1","status":"affected"},{"version":"0","lessThan":"7.1","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/24affb84d98e6b37b276aa57e5dd25ad93458cea","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/67511cced5a1b9e4f1787b0ea1e53ca076f42639","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}