{"id":"CVE-2026-31717","aliases":["CVE-2026-31717"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: validate owner of durable handle on reconnect","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate owner of durable handle on reconnect\n\nCurrently, ksmbd does not verify if the user attempting to reconnect\nto a durable handle is the same user who originally opened the file.\nThis allows any authenticated user to hijack an orphaned durable handle\nby predicting or brute-forcing the persistent ID.\n\nAccording to MS-SMB2, the server MUST verify that the SecurityContext\nof the reconnect request matches the SecurityContext associated with\nthe existing open.\nAdd a durable_owner structure to ksmbd_file to store the original opener's\nUID, GID, and account name. and catpure the owner information when a file\nhandle becomes orphaned. and implementing ksmbd_vfs_compare_durable_owner()\nto validate the identity of the requester during SMB2_CREATE (DHnC).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: validate owner of durable handle on reconnect\n\nCurrently, ksmbd does not verify if the user attempting to reconnect\nto a durable handle is the same user who originally opened the file.\nThis allows any authenticated user to hijack an orphaned durable handle\nby predicting or brute-forcing the persistent ID.\n\nAccording to MS-SMB2, the server MUST verify that the SecurityContext\nof the reconnect request matches the SecurityContext associated with\nthe existing open.\nAdd a durable_owner structure to ksmbd_file to store the original opener's\nUID, GID, and account name. and catpure the owner information when a file\nhandle becomes orphaned. and implementing ksmbd_vfs_compare_durable_owner()\nto validate the identity of the requester during SMB2_CREATE (DHnC).","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nksmbd: validar el propietario del identificador duradero al reconectar\n\nActualmente, ksmbd no verifica si el usuario que intenta reconectar a un identificador duradero es el mismo usuario que abrió originalmente el archivo. Esto permite a cualquier usuario autenticado secuestrar un identificador duradero huérfano prediciendo o forzando por fuerza bruta el ID persistente.\n\nSegún MS-SMB2, el servidor DEBE verificar que el SecurityContext de la solicitud de reconexión coincide con el SecurityContext asociado con la apertura existente.\nAñadir una estructura durable_owner a ksmbd_file para almacenar el UID, GID y nombre de cuenta del abridor original. Y capturar la información del propietario cuando un identificador de archivo queda huérfano. E implementar ksmbd_vfs_compare_durable_owner() para validar la identidad del solicitante durante SMB2_CREATE (DHnC).","source":"nvd"}],"published":"2026-05-01T13:56:12.012Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8df4bcdb0a4232192b2445256c39b787d58ef14d","fixed":"712cdf917e77a6444ce3836874829d770db20ee6","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"c7f0f0d01c88bdcb8b1694d7d321670013f7ed7d","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"00ce8d6789dae72d042a4522264964c72891ca37","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"c908c853f304a4969b5aa10eba0b50350cc65b80","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"49110a8ce654bbe56bef7c5e44cce31f4b102b8a","status":"affected"},{"type":"semver","introduced":"6.6.32","fixed":"6.6.142","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.6.142","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.92","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.25","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.2","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.32","fixed":"6.7"},{"status":"affected","introduced":"6.9","fixed":"6.18.25"},{"status":"affected","introduced":"6.19","fixed":"7.0.2"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/712cdf917e77a6444ce3836874829d770db20ee6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7f0f0d01c88bdcb8b1694d7d321670013f7ed7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00ce8d6789dae72d042a4522264964c72891ca37","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c908c853f304a4969b5aa10eba0b50350cc65b80","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49110a8ce654bbe56bef7c5e44cce31f4b102b8a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31717","url":"https://www.cve.org/CVERecord?id=CVE-2026-31717","licence":"CVE Terms of Use","modified":"2026-08-05T12:24:48.598Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31717","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31717","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.347Z","epss":{"score":0.00445,"percentile":0.40426,"date":"2026-12-01T12:00:22.000Z"}}