{"id":"CVE-2026-98611","state":"PUBLISHED","title":"bpf: Check params size before reading reserved fields","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check params size before reading reserved fields\n\nbpf_crypto_ctx_create() is a kfunc whose second argument is declared\nwith the __sz annotation, so the verifier only guarantees that\nparams__sz bytes of params are valid.  The function nevertheless reads\nparams->reserved[0] and params->reserved[1] (offsets 14 and 15) before\ncomparing params__sz against the size of struct bpf_crypto_params, so a\nBPF program can pass a shorter buffer and have the kernel read past the\nregion that was validated for it.\n\nMove the size check in front of the reserved field reads.","publishedAt":"2026-10-18T15:19:26.922Z","updatedAt":"2026-10-19T09:22:38.197Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"e03253f5d65ebcd2a6d479f140c3bd9c7e4fb84a","versionType":"git"},{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"cd12d3e08620257fbcaa262785d7f4b9473afc7a","versionType":"git"},{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"86a0e945fb645ea90233fde239cd2de79f01974c","versionType":"git"},{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"a11212910cf09b2fe8db9afa41ef60c4f81879c5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/crypto.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","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":["kernel/bpf/crypto.c"]}],"references":["https://git.kernel.org/stable/c/e03253f5d65ebcd2a6d479f140c3bd9c7e4fb84a","https://git.kernel.org/stable/c/cd12d3e08620257fbcaa262785d7f4b9473afc7a","https://git.kernel.org/stable/c/86a0e945fb645ea90233fde239cd2de79f01974c","https://git.kernel.org/stable/c/a11212910cf09b2fe8db9afa41ef60c4f81879c5"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98611.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98611","state":"PUBLISHED","datePublished":"2026-10-18T15:19:26.922Z","dateUpdated":"2026-10-19T09:22:38.197Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.360Z"},"containers":{"cna":{"title":"bpf: Check params size before reading reserved fields","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check params size before reading reserved fields\n\nbpf_crypto_ctx_create() is a kfunc whose second argument is declared\nwith the __sz annotation, so the verifier only guarantees that\nparams__sz bytes of params are valid.  The function nevertheless reads\nparams->reserved[0] and params->reserved[1] (offsets 14 and 15) before\ncomparing params__sz against the size of struct bpf_crypto_params, so a\nBPF program can pass a shorter buffer and have the kernel read past the\nregion that was validated for it.\n\nMove the size check in front of the reserved field reads."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"e03253f5d65ebcd2a6d479f140c3bd9c7e4fb84a","versionType":"git"},{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"cd12d3e08620257fbcaa262785d7f4b9473afc7a","versionType":"git"},{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"86a0e945fb645ea90233fde239cd2de79f01974c","versionType":"git"},{"version":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","status":"affected","lessThan":"a11212910cf09b2fe8db9afa41ef60c4f81879c5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/crypto.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","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":["kernel/bpf/crypto.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e03253f5d65ebcd2a6d479f140c3bd9c7e4fb84a"},{"url":"https://git.kernel.org/stable/c/cd12d3e08620257fbcaa262785d7f4b9473afc7a"},{"url":"https://git.kernel.org/stable/c/86a0e945fb645ea90233fde239cd2de79f01974c"},{"url":"https://git.kernel.org/stable/c/a11212910cf09b2fe8db9afa41ef60c4f81879c5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:22:38.197Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.18.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}