{"id":"CVE-2026-31774","aliases":["CVE-2026-31774"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring/net: fix slab-out-of-bounds read in io_bundle_nbufs()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/net: fix slab-out-of-bounds read in io_bundle_nbufs()\n\nsqe->len is __u32 but gets stored into sr->len which is int. When\nuserspace passes sqe->len values exceeding INT_MAX (e.g. 0xFFFFFFFF),\nsr->len overflows to a negative value. This negative value propagates\nthrough the bundle recv/send path:\n\n  1. io_recv(): sel.val = sr->len (ssize_t gets -1)\n  2. io_recv_buf_select(): arg.max_len = sel->val (size_t gets\n     0xFFFFFFFFFFFFFFFF)\n  3. io_ring_buffers_peek(): buf->len is not clamped because max_len\n     is astronomically large\n  4. iov[].iov_len = 0xFFFFFFFF flows into io_bundle_nbufs()\n  5. io_bundle_nbufs(): min_t(int, 0xFFFFFFFF, ret) yields -1,\n     causing ret to increase instead of decrease, creating an\n     infinite loop that reads past the allocated iov[] array\n\nThis results in a slab-out-of-bounds read in io_bundle_nbufs() from\nthe kmalloc-64 slab, as nbufs increments past the allocated iovec\nentries.\n\n  BUG: KASAN: slab-out-of-bounds in io_bundle_nbufs+0x128/0x160\n  Read of size 8 at addr ffff888100ae05c8 by task exp/145\n  Call Trace:\n   io_bundle_nbufs+0x128/0x160\n   io_recv_finish+0x117/0xe20\n   io_recv+0x2db/0x1160\n\nFix this by rejecting negative sr->len values early in both\nio_sendmsg_prep() and io_recvmsg_prep(). Since sqe->len is __u32,\nany value > INT_MAX indicates overflow and is not a valid length.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/net: fix slab-out-of-bounds read in io_bundle_nbufs()\n\nsqe->len is __u32 but gets stored into sr->len which is int. When\nuserspace passes sqe->len values exceeding INT_MAX (e.g. 0xFFFFFFFF),\nsr->len overflows to a negative value. This negative value propagates\nthrough the bundle recv/send path:\n\n  1. io_recv(): sel.val = sr->len (ssize_t gets -1)\n  2. io_recv_buf_select(): arg.max_len = sel->val (size_t gets\n     0xFFFFFFFFFFFFFFFF)\n  3. io_ring_buffers_peek(): buf->len is not clamped because max_len\n     is astronomically large\n  4. iov[].iov_len = 0xFFFFFFFF flows into io_bundle_nbufs()\n  5. io_bundle_nbufs(): min_t(int, 0xFFFFFFFF, ret) yields -1,\n     causing ret to increase instead of decrease, creating an\n     infinite loop that reads past the allocated iov[] array\n\nThis results in a slab-out-of-bounds read in io_bundle_nbufs() from\nthe kmalloc-64 slab, as nbufs increments past the allocated iovec\nentries.\n\n  BUG: KASAN: slab-out-of-bounds in io_bundle_nbufs+0x128/0x160\n  Read of size 8 at addr ffff888100ae05c8 by task exp/145\n  Call Trace:\n   io_bundle_nbufs+0x128/0x160\n   io_recv_finish+0x117/0xe20\n   io_recv+0x2db/0x1160\n\nFix this by rejecting negative sr->len values early in both\nio_sendmsg_prep() and io_recvmsg_prep(). Since sqe->len is __u32,\nany value > INT_MAX indicates overflow and is not a valid length.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nio_uring/net: corrige lectura fuera de límites de slab en io_bundle_nbufs()\n\nsqe  ->  len es __u32 pero se almacena en sr  ->  len, que es int. Cuando el espacio de usuario pasa valores de sqe  ->  len que exceden INT_MAX (p. ej., 0x FFFFFFFF), sr  ->  len desborda a un valor negativo. Este valor negativo se propaga a través de la ruta de recepción/envío del paquete:\n\n  1. io_recv(): sel.val = sr  ->  len (ssize_t obtiene -1)\n  2. io_recv_buf_select(): arg.max_len = sel  ->  val (size_t obtiene 0x FFFFFFFFFFFFFFFF)\n  3. io_ring_buffers_peek(): buf  ->  len no se limita porque max_len es astronómicamente grande\n  4. iov[].iov_len = 0x FFFFFFFF fluye hacia io_bundle_nbufs()\n  5. io_bundle_nbufs(): min_t(int, 0x FFFFFFFF, ret) produce -1, haciendo que ret aumente en lugar de disminuir, creando un bucle infinito que lee más allá del array iov[] asignado\n\nEsto resulta en una lectura fuera de límites de slab en io_bundle_nbufs() desde el slab kmalloc-64, a medida que nbufs se incrementa más allá de las entradas iovec asignadas.\n\n  BUG: KASAN: slab-out-of-bounds in io_bundle_nbufs+0x128/0x160\n  Lectura de tamaño 8 en la dirección ffff888100ae05c8 por la tarea exp/145\n  Traza de Llamada:\n   io_bundle_nbufs+0x128/0x160\n   io_recv_finish+0x117/0xe20\n   io_recv+0x2db/0x 1160\n\nEsto se soluciona rechazando valores negativos de sr  ->  len temprano tanto en io_sendmsg_prep() como en io_recvmsg_prep(). Dado que sqe  ->  len es __u32, cualquier valor > INT_MAX indica desbordamiento y no es una longitud válida.","source":"nvd"}],"published":"2026-05-01T14:15:02.903Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125","CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"a05d1f625c7aa681d8816bc0f10089289ad07aad","fixed":"90ced24c500ad4e129e9e34b7e56fd7849e350b6","status":"affected"},{"type":"git","introduced":"a05d1f625c7aa681d8816bc0f10089289ad07aad","fixed":"c314b405dcc4d8b9041124f928f81715d6328bec","status":"affected"},{"type":"git","introduced":"a05d1f625c7aa681d8816bc0f10089289ad07aad","fixed":"1b655cd311344117d3052f6552cb20d9901c9d7c","status":"affected"},{"type":"git","introduced":"a05d1f625c7aa681d8816bc0f10089289ad07aad","fixed":"b948f9d5d3057b01188e36664e7c7604d1c8ecb5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","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":"6.10","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"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/90ced24c500ad4e129e9e34b7e56fd7849e350b6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c314b405dcc4d8b9041124f928f81715d6328bec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b655cd311344117d3052f6552cb20d9901c9d7c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b948f9d5d3057b01188e36664e7c7604d1c8ecb5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T15:13:11.625Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31774","url":"https://www.cve.org/CVERecord?id=CVE-2026-31774","licence":"CVE Terms of Use","modified":"2026-10-19T19:06:08.469Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31774","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31774","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.381Z","epss":{"score":0.0013,"percentile":0.02872,"date":"2026-12-01T12:00:22.000Z"}}