nvmet-tcp: add bounds checks in nvmet_tcp_build_pdu_iovec
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.253, 5.15.200, 6.1.163, 6.6.124, 6.12.70, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in 0b9981751be14b59b4473383c731c833738aebdb; From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in 42afe8ed8ad2de9c19457156244ef3e1eca94b5d; From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in 1385be357e8acd09b36e026567f3a9d5c61139de; From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in dca1a6ba0da9f472ef040525fab10fd9956db59f; From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in 19672ae68d52ff75347ebe2420dde1b07adca09f; From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in ab200d71553bdcf4de554a5985b05b2dd606bc57; From 872d26a391da92ed8f0c0f5cb5fef428067b7f30 · fixed in 52a0a98549344ca20ad81a4176d68d28e3c05a5c
- Linux Linux
5.0
- KernelLinux
From 5.0.0 · fixed in 5.10.253; From 5.11.0 · fixed in 5.15.200; From 5.16.0 · fixed in 6.1.163; From 6.2.0 · fixed in 6.6.124; From 6.7.0 · fixed in 6.12.70; From 6.13.0 · fixed in 6.18.10
References 7
git.kernel.org
- stable/c/0b9981751be14b59b4473383c731c833738aebdb
- stable/c/42afe8ed8ad2de9c19457156244ef3e1eca94b5d
- stable/c/1385be357e8acd09b36e026567f3a9d5c61139de
- stable/c/dca1a6ba0da9f472ef040525fab10fd9956db59f
- stable/c/19672ae68d52ff75347ebe2420dde1b07adca09f
- stable/c/ab200d71553bdcf4de554a5985b05b2dd606bc57
- stable/c/52a0a98549344ca20ad81a4176d68d28e3c05a5c