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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 0b9981751be14b59b4473383c731c833738aebdbaffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 42afe8ed8ad2de9c19457156244ef3e1eca94b5daffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 1385be357e8acd09b36e026567f3a9d5c61139deaffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < dca1a6ba0da9f472ef040525fab10fd9956db59faffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 19672ae68d52ff75347ebe2420dde1b07adca09faffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < ab200d71553bdcf4de554a5985b05b2dd606bc57affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 52a0a98549344ca20ad81a4176d68d28e3c05a5caffected
Linux Linux
Default version status: affected
5.0affected0 to < 5.0unaffected5.10.253 to ≤ 5.10.*unaffected5.15.200 to ≤ 5.15.*unaffected6.1.163 to ≤ 6.1.*unaffected6.6.124 to ≤ 6.6.*unaffected6.12.70 to ≤ 6.12.*unaffected6.18.10 to ≤ 6.18.*unaffected6.19 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/0b9981751be14b59b4473383c731c833738aebdb ↗
- https://git.kernel.org/stable/c/42afe8ed8ad2de9c19457156244ef3e1eca94b5d ↗
- https://git.kernel.org/stable/c/1385be357e8acd09b36e026567f3a9d5c61139de ↗
- https://git.kernel.org/stable/c/dca1a6ba0da9f472ef040525fab10fd9956db59f ↗
- https://git.kernel.org/stable/c/19672ae68d52ff75347ebe2420dde1b07adca09f ↗
- https://git.kernel.org/stable/c/ab200d71553bdcf4de554a5985b05b2dd606bc57 ↗
- https://git.kernel.org/stable/c/52a0a98549344ca20ad81a4176d68d28e3c05a5c ↗
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html ↗