{"id":"CVE-2026-31484","aliases":["CVE-2026-31484"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring/fdinfo: fix OOB read in SQE_MIXED wrap check","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/fdinfo: fix OOB read in SQE_MIXED wrap check\n\n__io_uring_show_fdinfo() iterates over pending SQEs and, for 128-byte\nSQEs on an IORING_SETUP_SQE_MIXED ring, needs to detect when the second\nhalf of the SQE would be past the end of the sq_sqes array. The current\ncheck tests (++sq_head & sq_mask) == 0, but sq_head is only incremented\nwhen a 128-byte SQE is encountered, not on every iteration. The actual\narray index is sq_idx = (i + sq_head) & sq_mask, which can be sq_mask\n(the last slot) while the wrap check passes.\n\nFix by checking sq_idx directly. Keep the sq_head increment so the loop\nstill skips the second half of the 128-byte SQE on the next iteration.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/fdinfo: fix OOB read in SQE_MIXED wrap check\n\n__io_uring_show_fdinfo() iterates over pending SQEs and, for 128-byte\nSQEs on an IORING_SETUP_SQE_MIXED ring, needs to detect when the second\nhalf of the SQE would be past the end of the sq_sqes array. The current\ncheck tests (++sq_head & sq_mask) == 0, but sq_head is only incremented\nwhen a 128-byte SQE is encountered, not on every iteration. The actual\narray index is sq_idx = (i + sq_head) & sq_mask, which can be sq_mask\n(the last slot) while the wrap check passes.\n\nFix by checking sq_idx directly. Keep the sq_head increment so the loop\nstill skips the second half of the 128-byte SQE on the next iteration.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nio_uring/fdinfo: corrección de lectura fuera de límites en la verificación de envoltura SQE_MIXED\n\n__io_uring_show_fdinfo() itera sobre los SQE pendientes y, para los SQE de 128 bytes en un anillo IORING_SETUP_SQE_MIXED, necesita detectar cuándo la segunda mitad del SQE estaría más allá del final del array sq_sqes. La verificación actual prueba (++sq_head & sq_mask) == 0, pero sq_head solo se incrementa cuando se encuentra un SQE de 128 bytes, no en cada iteración. El índice real del array es sq_idx = (i + sq_head) & sq_mask, que puede ser sq_mask (la última ranura) mientras la verificación de envoltura pasa.\n\nSolución al verificar sq_idx directamente. Mantener el incremento de sq_head para que el bucle aún omita la segunda mitad del SQE de 128 bytes en la siguiente iteración.","source":"nvd"}],"published":"2026-04-22T13:54:10.223Z","modified":"2026-11-11T23:10:00.263Z","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"],"affected":[{"ranges":[{"type":"git","introduced":"1cba30bf9fdd6c982708f3587f609a30c370d889","fixed":"ba21ab247a5be5382da7464b95afbe5f0e9aa503","status":"affected"},{"type":"git","introduced":"1cba30bf9fdd6c982708f3587f609a30c370d889","fixed":"5170efd9c344c68a8075dcb8ed38d3f8a60e7ed4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.11","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.19.1","fixed":"6.19.11"},{"status":"affected","version":"6.19"},{"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"},{"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/ba21ab247a5be5382da7464b95afbe5f0e9aa503","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5170efd9c344c68a8075dcb8ed38d3f8a60e7ed4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31484","url":"https://www.cve.org/CVERecord?id=CVE-2026-31484","licence":"CVE Terms of Use","modified":"2026-08-05T12:22:59.333Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31484","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31484","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.285Z","epss":{"score":0.00122,"percentile":0.02133,"date":"2026-12-01T12:00:22.000Z"}}