{"api_version":"1","generated_at":"2026-04-22T12:55:43+00:00","cve":"CVE-2026-31432","urls":{"html":"https://cve.report/CVE-2026-31432","api":"https://cve.report/api/cve/CVE-2026-31432.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31432","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31432"},"summary":{"title":"ksmbd: fix OOB write in QUERY_INFO for compound requests","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB write in QUERY_INFO for compound requests\n\nWhen a compound request such as READ + QUERY_INFO(Security) is received,\nand the first command (READ) consumes most of the response buffer,\nksmbd could write beyond the allocated buffer while building a security\ndescriptor.\n\nThe root cause was that smb2_get_info_sec() checked buffer space using\nppntsd_size from xattr, while build_sec_desc() often synthesized a\nsignificantly larger descriptor from POSIX ACLs.\n\nThis patch introduces smb_acl_sec_desc_scratch_len() to accurately\ncompute the final descriptor size beforehand, performs proper buffer\nchecking with smb2_calc_max_out_buf_len(), and uses exact-sized\nallocation + iov pinning.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-04-22 09:16:21","updated_at":"2026-04-22 09:16:21"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45","name":"https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09","name":"https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617","name":"https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc","name":"https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-31432","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31432","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d 075ea208c648cc2bcd616295b711d3637c61de45 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d 515c2daab46021221bdf406bef19bc90a44ec617 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d fda9522ed6afaec45cabc198d8492270c394c7bc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f2283680a80571ca82d710bc6ecd8f8beac67d63 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.81 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.22 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19.12 6.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c","fs/smb/server/smbacl.c","fs/smb/server/smbacl.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09","status":"affected","version":"e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d","versionType":"git"},{"lessThan":"075ea208c648cc2bcd616295b711d3637c61de45","status":"affected","version":"e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d","versionType":"git"},{"lessThan":"515c2daab46021221bdf406bef19bc90a44ec617","status":"affected","version":"e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d","versionType":"git"},{"lessThan":"fda9522ed6afaec45cabc198d8492270c394c7bc","status":"affected","version":"e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d","versionType":"git"},{"status":"affected","version":"f2283680a80571ca82d710bc6ecd8f8beac67d63","versionType":"git"},{"status":"affected","version":"9f297df20d93411c0b4ddad7f88ba04a7cd36e77","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/smb2pdu.c","fs/smb/server/smbacl.c","fs/smb/server/smbacl.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.6"},{"lessThan":"6.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.81","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.22","versionType":"semver"},{"lessThanOrEqual":"6.19.*","status":"unaffected","version":"6.19.12","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.0","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.81","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.22","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.19.12","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.145","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.71","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB write in QUERY_INFO for compound requests\n\nWhen a compound request such as READ + QUERY_INFO(Security) is received,\nand the first command (READ) consumes most of the response buffer,\nksmbd could write beyond the allocated buffer while building a security\ndescriptor.\n\nThe root cause was that smb2_get_info_sec() checked buffer space using\nppntsd_size from xattr, while build_sec_desc() often synthesized a\nsignificantly larger descriptor from POSIX ACLs.\n\nThis patch introduces smb_acl_sec_desc_scratch_len() to accurately\ncompute the final descriptor size beforehand, performs proper buffer\nchecking with smb2_calc_max_out_buf_len(), and uses exact-sized\nallocation + iov pinning."}],"providerMetadata":{"dateUpdated":"2026-04-22T08:15:10.873Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09"},{"url":"https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45"},{"url":"https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617"},{"url":"https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc"}],"title":"ksmbd: fix OOB write in QUERY_INFO for compound requests","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-31432","datePublished":"2026-04-22T08:15:10.873Z","dateReserved":"2026-03-09T15:48:24.089Z","dateUpdated":"2026-04-22T08:15:10.873Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-22 09:16:21","lastModifiedDate":"2026-04-22 09:16:21","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"31432","Ordinal":"1","Title":"ksmbd: fix OOB write in QUERY_INFO for compound requests","CVE":"CVE-2026-31432","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"31432","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB write in QUERY_INFO for compound requests\n\nWhen a compound request such as READ + QUERY_INFO(Security) is received,\nand the first command (READ) consumes most of the response buffer,\nksmbd could write beyond the allocated buffer while building a security\ndescriptor.\n\nThe root cause was that smb2_get_info_sec() checked buffer space using\nppntsd_size from xattr, while build_sec_desc() often synthesized a\nsignificantly larger descriptor from POSIX ACLs.\n\nThis patch introduces smb_acl_sec_desc_scratch_len() to accurately\ncompute the final descriptor size beforehand, performs proper buffer\nchecking with smb2_calc_max_out_buf_len(), and uses exact-sized\nallocation + iov pinning.","Type":"Description","Title":"ksmbd: fix OOB write in QUERY_INFO for compound requests"}]}}}