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.
Fix
Patch, vendor advisory and mitigation references on NVD 6
- https://git.kernel.org/stable/c/1385be357e8acd09b36e026567f3a9d5c61139de Patch
- https://git.kernel.org/stable/c/19672ae68d52ff75347ebe2420dde1b07adca09f Patch
- https://git.kernel.org/stable/c/42afe8ed8ad2de9c19457156244ef3e1eca94b5d Patch
- https://git.kernel.org/stable/c/52a0a98549344ca20ad81a4176d68d28e3c05a5c Patch
- https://git.kernel.org/stable/c/ab200d71553bdcf4de554a5985b05b2dd606bc57 Patch
- https://git.kernel.org/stable/c/dca1a6ba0da9f472ef040525fab10fd9956db59f Patch
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 2
- CwesCWE-787 → CWE-787, CWE-125NVD modified 2026-10-19 19:17
- First seenCVSS 9.8 · linuxNVD modified 2026-10-16 15:17
Affected (CPE criteria) 9
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*
References 8
- https://git.kernel.org/stable/c/0b9981751be14b59b4473383c731c833738aebdb
- https://git.kernel.org/stable/c/1385be357e8acd09b36e026567f3a9d5c61139de Patch
- https://git.kernel.org/stable/c/19672ae68d52ff75347ebe2420dde1b07adca09f Patch
- https://git.kernel.org/stable/c/42afe8ed8ad2de9c19457156244ef3e1eca94b5d Patch
- https://git.kernel.org/stable/c/52a0a98549344ca20ad81a4176d68d28e3c05a5c Patch
- https://git.kernel.org/stable/c/ab200d71553bdcf4de554a5985b05b2dd606bc57 Patch
- https://git.kernel.org/stable/c/dca1a6ba0da9f472ef040525fab10fd9956db59f Patch
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html