{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31708","id":"CVE-2026-31708","title":"smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path\n\nsmb2_ioctl_query_info() has two response-copy branches: PASSTHRU_FSCTL\nand the default QUERY_INFO path.  The QUERY_INFO branch clamps\nqi.input_buffer_length to the server-reported OutputBufferLength and then\ncopies qi.input_buffer_length bytes from qi_rsp->Buffer","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path\n\nsmb2_ioctl_query_info() has two response-copy branches: PASSTHRU_FSCTL\nand the default QUERY_INFO path.  The QUERY_INFO branch clamps\nqi.input_buffer_length to the server-reported OutputBufferLength and then\ncopies qi.input_buffer_length bytes from qi_rsp->Buffer to userspace, but\nit never verifies that the flexible-array payload actually fits within\nrsp_iov[1].iov_len.\n\nA malicious server can return OutputBufferLength larger than the actual\nQUERY_INFO response, causing copy_to_user() to walk past the response\nbuffer and expose adjacent kernel heap to userspace.\n\nGuard the QUERY_INFO copy with a bounds check on the actual Buffer\npayload.  Use struct_size(qi_rsp, Buffer, qi.input_buffer_length)\nrather than an open-coded addition so the guard cannot overflow on\n32-bit builds.","published":"2026-05-01T13:56:05.880Z","updated":"2026-11-19T11:57:37.503731251Z","reserved":"2026-03-09T15:48:24.132Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"e66bdc0704977ecee667a81d38255b579c2353d0","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"9e203dbb5402897c43130fb171a2617008a91f45","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"1dd757379997b71a328a4b591ffaf481acd0ead1","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"a34d456934fe42e4da5d2cc07787bf418bee99c6","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"ac2f14e4705d020f04e806efa0d49ab8dc2b145f","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"078fae8f50adebb903ccf2252b44391324571e78","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"85fd46ee26a11841c670449508025965f61ce131","status":"affected","versionType":"git"},{"version":"f5778c398713692a16150ae96e5c8270bab8399f","lessThan":"a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","lessThan":"5.1","status":"unaffected","versionType":"semver"},{"version":"5.10.259","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.210","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.175","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.136","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.84","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.25","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.2","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-125"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e66bdc0704977ecee667a81d38255b579c2353d0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9e203dbb5402897c43130fb171a2617008a91f45","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1dd757379997b71a328a4b591ffaf481acd0ead1","tags":["web"]},{"url":"https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e","tags":["Patch","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31708.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31708","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00352,"epssPercentile":0.29493,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31708","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31708","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31708","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31708","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}