{"id":"CVE-2026-43185","aliases":["CVE-2026-43185"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix signededness bug in smb_direct_prepare_negotiation()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix signededness bug in smb_direct_prepare_negotiation()\n\nsmb_direct_prepare_negotiation() casts an unsigned __u32 value\nfrom sp->max_recv_size and req->preferred_send_size to a signed\nint before computing min_t(int, ...). A maliciously provided\npreferred_send_size of 0x80000000 will return as smaller than\nmax_recv_size, and then be used to set the maximum allowed\nalowed receive size for the next message.\n\nBy sending a second message with a large value (>1420 bytes)\nthe attacker can then achieve a heap buffer overflow.\n\nThis fix replaces min_t(int, ...) with min_t(u32)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix signededness bug in smb_direct_prepare_negotiation()\n\nsmb_direct_prepare_negotiation() casts an unsigned __u32 value\nfrom sp->max_recv_size and req->preferred_send_size to a signed\nint before computing min_t(int, ...). A maliciously provided\npreferred_send_size of 0x80000000 will return as smaller than\nmax_recv_size, and then be used to set the maximum allowed\nalowed receive size for the next message.\n\nBy sending a second message with a large value (>1420 bytes)\nthe attacker can then achieve a heap buffer overflow.\n\nThis fix replaces min_t(int, ...) with min_t(u32)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ksmbd: corrige un error de signo en smb_direct_prepare_negotiation() smb_direct_prepare_negotiation() convierte un valor __u32 sin signo de sp  ->  max_recv_size y req  ->  preferred_send_size a un entero con signo antes de calcular min_t(int, ...). Un preferred_send_size proporcionado maliciosamente de 0x 80000000 resultará ser menor que max_recv_size, y luego se utilizará para establecer el tamaño máximo de recepción permitido para el siguiente mensaje. Al enviar un segundo mensaje con un valor grande (mayor que 1420 bytes), el atacante puede entonces lograr un desbordamiento de búfer de pila. Esta corrección reemplaza min_t(int, ...) con min_t(u32)","source":"nvd"}],"published":"2026-05-06T11:27:56.386Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"1c268fd2f59dc9ccb2c2a7d1f439b232dbe1c06c","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"56eab82fa6fb5ca024b0514e249d40d9b23ee5a7","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"a110dbe928561d440e9e117d17331139a0bedace","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"ceae058eb707ddd0d68f0872f9d9f23b7c30c37b","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"55abc475d096da4a5356b6efb0cfdc6156bc1550","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"6b4f875aac344cdd52a1f34cc70ed2f874a65757","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"5.15","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1c268fd2f59dc9ccb2c2a7d1f439b232dbe1c06c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/56eab82fa6fb5ca024b0514e249d40d9b23ee5a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a110dbe928561d440e9e117d17331139a0bedace","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ceae058eb707ddd0d68f0872f9d9f23b7c30c37b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/55abc475d096da4a5356b6efb0cfdc6156bc1550","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b4f875aac344cdd52a1f34cc70ed2f874a65757","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43185","url":"https://www.cve.org/CVERecord?id=CVE-2026-43185","licence":"CVE Terms of Use","modified":"2026-10-30T12:25:08.090Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43185","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43185","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.718Z","epss":{"score":0.00887,"percentile":0.60353,"date":"2026-12-01T12:00:22.000Z"}}