{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-98171","id":"CVE-2026-98171","title":"smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs\n\nFix several related bounds checking and pointer lifecycle issues in\nreceive_encrypted_standard()'s handling of compound encrypted frames:\n\n- Clear next_buffer after assigning it to server->bigbuf. A stale\n  next_buffer pointer can lead to a use-after-free o","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs\n\nFix several related bounds checking and pointer lifecycle issues in\nreceive_encrypted_standard()'s handling of compound encrypted frames:\n\n- Clear next_buffer after assigning it to server->bigbuf. A stale\n  next_buffer pointer can lead to a use-after-free on subsequent\n  error paths.\n- Update pdu_length to the decrypted plaintext size (buf_size). Using\n  the pre-decryption length allows NextCommand to point into stale\n  ciphertext residue.\n- Reject next_cmd values smaller than MID_HEADER_SIZE(server).\n- Fix an integer overflow in the upper bound check by verifying\n  pdu_length - next_cmd < MID_HEADER_SIZE(server), ensuring the\n  trailing slice is large enough for a header.","published":"2026-10-06T08:44:15.927Z","updated":"2026-11-19T17:27:40.157309271Z","reserved":"2026-09-25T10:25:14.322Z","status":"Received","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"1ed29f7a03417b405f38c09cfe04124883127b53","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"7f022867ec9f0166a0b4400385bb601b1c6b2c75","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"72eaef1f37a3b6bec11c342736834dc3707be3e4","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"491e33144dee872cffda207f6fcb09260728f803","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"8749946579708ea0d339034bb7f423a67dbe89cf","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"96c436e4b010711452b2872558938f4ef276492a","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"858d5ac22cb889266993e7670f9f0c4f4aeedd78","status":"affected","versionType":"git"},{"version":"b24df3e30cbf48255db866720fb71f14bf9d2f39","lessThan":"05762c5bc1cfdcac36747994fde2c04387a457f1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","lessThan":"4.19","status":"unaffected","versionType":"semver"},{"version":"5.10.273","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.224","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.189","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.158","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.54","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.8","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/1ed29f7a03417b405f38c09cfe04124883127b53","tags":["web"]},{"url":"https://git.kernel.org/stable/c/7f022867ec9f0166a0b4400385bb601b1c6b2c75","tags":["web"]},{"url":"https://git.kernel.org/stable/c/72eaef1f37a3b6bec11c342736834dc3707be3e4","tags":["web"]},{"url":"https://git.kernel.org/stable/c/491e33144dee872cffda207f6fcb09260728f803","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8749946579708ea0d339034bb7f423a67dbe89cf","tags":["web"]},{"url":"https://git.kernel.org/stable/c/96c436e4b010711452b2872558938f4ef276492a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/858d5ac22cb889266993e7670f9f0c4f4aeedd78","tags":["web"]},{"url":"https://git.kernel.org/stable/c/05762c5bc1cfdcac36747994fde2c04387a457f1","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98171.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98171","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00537,"epssPercentile":0.46034,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98171","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98171","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-98171","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-98171","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}