{"id":"CVE-2026-99129","state":"PUBLISHED","title":"selinux: fix BPF token permission checks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nselinux: fix BPF token permission checks\n\nAvoid multiple lookups of the bpffs creator SID using the token's file\ndescriptor when the same information can be found via the resolved\npath/dentry (in selinux_bpf_token_create()) or the token itself (in\nselinux_bpf_map_create() and selinux_bpf_prog_load()).  Not only does\nthis simplify the code, it avoids potential TOCTOU issues if the user\nchanges the token file descriptor passed into the kernel.","publishedAt":"2026-10-28T10:34:42.881Z","updatedAt":"2026-10-28T10:34:42.881Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5473a722f782f79f96b4691400d681c01fcacc2f","status":"affected","lessThan":"e1ef306ba20eb13099ca4463527890df67619405","versionType":"git"},{"version":"5473a722f782f79f96b4691400d681c01fcacc2f","status":"affected","lessThan":"77d499e61d36e883a6ad1f10afe05f556aa7e0cc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/selinux/hooks.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/selinux/hooks.c"]}],"references":["https://git.kernel.org/stable/c/e1ef306ba20eb13099ca4463527890df67619405","https://git.kernel.org/stable/c/77d499e61d36e883a6ad1f10afe05f556aa7e0cc"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99129.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99129","state":"PUBLISHED","datePublished":"2026-10-28T10:34:42.881Z","dateUpdated":"2026-10-28T10:34:42.881Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.394Z"},"containers":{"cna":{"title":"selinux: fix BPF token permission checks","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nselinux: fix BPF token permission checks\n\nAvoid multiple lookups of the bpffs creator SID using the token's file\ndescriptor when the same information can be found via the resolved\npath/dentry (in selinux_bpf_token_create()) or the token itself (in\nselinux_bpf_map_create() and selinux_bpf_prog_load()).  Not only does\nthis simplify the code, it avoids potential TOCTOU issues if the user\nchanges the token file descriptor passed into the kernel."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5473a722f782f79f96b4691400d681c01fcacc2f","status":"affected","lessThan":"e1ef306ba20eb13099ca4463527890df67619405","versionType":"git"},{"version":"5473a722f782f79f96b4691400d681c01fcacc2f","status":"affected","lessThan":"77d499e61d36e883a6ad1f10afe05f556aa7e0cc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/selinux/hooks.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.2.13","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/selinux/hooks.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e1ef306ba20eb13099ca4463527890df67619405"},{"url":"https://git.kernel.org/stable/c/77d499e61d36e883a6ad1f10afe05f556aa7e0cc"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-28T10:34:42.881Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.2.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}