{"id":"CVE-2026-98171","published":"2026-10-06T08:44:15Z","modified":"2026-10-30T12:37:50Z","title":"smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00578,"percentile":0.41516,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/1ed29f7a03417b405f38c09cfe04124883127b53","tags":[]},{"url":"https://git.kernel.org/stable/c/7f022867ec9f0166a0b4400385bb601b1c6b2c75","tags":[]},{"url":"https://git.kernel.org/stable/c/72eaef1f37a3b6bec11c342736834dc3707be3e4","tags":[]},{"url":"https://git.kernel.org/stable/c/491e33144dee872cffda207f6fcb09260728f803","tags":[]},{"url":"https://git.kernel.org/stable/c/8749946579708ea0d339034bb7f423a67dbe89cf","tags":[]},{"url":"https://git.kernel.org/stable/c/96c436e4b010711452b2872558938f4ef276492a","tags":[]},{"url":"https://git.kernel.org/stable/c/858d5ac22cb889266993e7670f9f0c4f4aeedd78","tags":[]},{"url":"https://git.kernel.org/stable/c/05762c5bc1cfdcac36747994fde2c04387a457f1","tags":[]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":8.3},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 1ed29f7a03417b405f38c09cfe04124883127b53",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 7f022867ec9f0166a0b4400385bb601b1c6b2c75",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 72eaef1f37a3b6bec11c342736834dc3707be3e4",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 491e33144dee872cffda207f6fcb09260728f803",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 8749946579708ea0d339034bb7f423a67dbe89cf",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 96c436e4b010711452b2872558938f4ef276492a",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 858d5ac22cb889266993e7670f9f0c4f4aeedd78",">= b24df3e30cbf48255db866720fb71f14bf9d2f39, < 05762c5bc1cfdcac36747994fde2c04387a457f1"]},{"vendor":"Linux","product":"Linux","versions":["4.19"]}],"euvd":{"id":"EUVD-2026-93099","exploited":false,"provenance":"source"}}