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.
https://git.kernel.org/stable/c/dca1a6ba0da9f472ef040525fab10fd9956db59f
https://git.kernel.org/stable/c/ab200d71553bdcf4de554a5985b05b2dd606bc57
https://git.kernel.org/stable/c/52a0a98549344ca20ad81a4176d68d28e3c05a5c
https://git.kernel.org/stable/c/42afe8ed8ad2de9c19457156244ef3e1eca94b5d
https://git.kernel.org/stable/c/19672ae68d52ff75347ebe2420dde1b07adca09f
https://git.kernel.org/stable/c/1385be357e8acd09b36e026567f3a9d5c61139de
https://git.kernel.org/stable/c/043b4307a99f902697349128fde93b2ddde4686c