Linux
nvmet-tcp: add bounds checks in nvmet_tcp_build_pdu_iovec
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < 0b9981751be14b59b4473383c731c833738aebdb
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < 42afe8ed8ad2de9c19457156244ef3e1eca94b5d
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < 1385be357e8acd09b36e026567f3a9d5c61139de
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < dca1a6ba0da9f472ef040525fab10fd9956db59f
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < 19672ae68d52ff75347ebe2420dde1b07adca09f
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < ab200d71553bdcf4de554a5985b05b2dd606bc57
- >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30, < 52a0a98549344ca20ad81a4176d68d28e3c05a5c
Fixed in 0b9981751be14b59b4473383c731c833738aebdb, 42afe8ed8ad2de9c19457156244ef3e1eca94b5d, 1385be357e8acd09b36e026567f3a9d5c61139de, dca1a6ba0da9f472ef040525fab10fd9956db59f, 19672ae68d52ff75347ebe2420dde1b07adca09f, ab200d71553bdcf4de554a5985b05b2dd606bc57, 52a0a98549344ca20ad81a4176d68d28e3c05a5c
- 5.0
Fixed in 0, 5.10.253, 5.15.200, 6.1.163, 6.6.124, 6.12.70, 6.18.10, 6.19
Mitigation
Upgrade Linux to 0b9981751be14b59b4473383c731c833738aebdb or 42afe8ed8ad2de9c19457156244ef3e1eca94b5d or 1385be357e8acd09b36e026567f3a9d5c61139de or dca1a6ba0da9f472ef040525fab10fd9956db59f or 19672ae68d52ff75347ebe2420dde1b07adca09f or ab200d71553bdcf4de554a5985b05b2dd606bc57 or 52a0a98549344ca20ad81a4176d68d28e3c05a5c or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.200 or 6.1.163 or 6.6.124 or 6.12.70 or 6.18.10 or 6.19 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.