9.8critical
nvmet-tcp: add bounds checks in nvmet_tcp_build_pdu_iovec
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.93% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: add bounds checks in nvmet_tcp_build_pdu_iovec nvmet_tcp_build_pdu_iovec() could walk past cmd->req.sg when a PDU length or offset exceeds sg_cnt and then use bogus sg->length/offset values, leading to _copy_to_iter() GPF/KASAN. Guard sg_idx, remaining entries, and sg->length/offset before building the bvec.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 0b9981751be14b59b4473383c731c833738aebdb, from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 42afe8ed8ad2de9c19457156244ef3e1eca94b5d, from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 1385be357e8acd09b36e026567f3a9d5c61139de, from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before dca1a6ba0da9f472ef040525fab10fd9956db59f, from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 19672ae68d52ff75347ebe2420dde1b07adca09f, from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before ab200d71553bdcf4de554a5985b05b2dd606bc57, from 872d26a391da92ed8f0c0f5cb5fef428067b7f30 before 52a0a98549344ca20ad81a4176d68d28e3c05a5c, 5.0 Not affected: before 5.0, from 5.10.253 up to 5.10.*, from 5.15.200 up to 5.15.*, from 6.1.163 up to 6.1.*, from 6.6.124 up to 6.6.*, from 6.12.70 up to 6.12.* | CVE List |
| linux linux_kernel | from 5.0 before 5.10.250, from 5.11 before 5.15.200, from 5.16 before 6.1.163, from 6.2 before 6.6.124, from 6.7 before 6.12.70, from 6.13 before 6.18.10, 6.19 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: add bounds checks in nvmet_tcp_build_pdu_iovec nvmet_tcp_build_pdu_iovec() could walk past cmd->req.sg when a PDU length or offset exceeds sg_cnt and then use bogus sg->length/offset values, leading to _copy_to_iter() GPF/KASAN. Guard sg_idx, remaining entries, and sg->length/offset before building the bvec.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: nvmet-tcp: añadir comprobaciones de límites en nvmet_tcp_build_pdu_iovec nvmet_tcp_build_pdu_iovec() podría exceder cmd->req.sg cuando una longitud o desplazamiento de PDU excede sg_cnt y luego usar valores sg->length/offset erróneos, lo que lleva a _copy_to_iter() GPF/KASAN. Proteger sg_idx, las entradas restantes y sg->length/offset antes de construir el bvec.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23112 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-23112 changed 2026-10-19 | Public domain |