Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers

In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: propagate nvmet_tcp_build_pdu_iovec() errors to its callers Currently, when nvmet_tcp_build_pdu_iovec() detects an out-of-bounds PDU length or offset, it triggers nvmet_tcp_fatal_error(cmd->queue) and returns early. However, because the function returns void, the callers are entirely unaware that a fatal error has occurred and that the cmd->recv_msg.msg_iter was left uninitialized. Callers such as nvmet_tcp_handle_h2c_data_pdu() proceed to blindly overwrite the queue state with queue->rcv_state = NVMET_TCP_RECV_DATA Consequently, the socket receiving loop may attempt to read incoming network data into the uninitialized iterator. Fix this by shifting the error handling responsibility to the callers.

Affected products

Linux
  • <046fa5c72d15cd8e2d592e275697ea399d8f76b0
  • =<6.18.*
  • <5.11
  • =<7.0.*
  • <3df42a854686fa06484e37ac1a3931c8e3e3453c
  • ==42afe8ed8ad2de9c19457156244ef3e1eca94b5d
  • ==043b4307a99f902697349128fde93b2ddde4686c
  • ==6.19
  • =<6.1.*
  • <6.18.33
  • <d7c8f95f599b3b38a717d2e771c3f8c174f657c3
  • <6.19
  • <c2a11441538bdbbc5aa003f190995eba93a89b88
  • <6.1.175
  • <ea8e356acb165cb1fd75537a52e1f66e5e76c538
  • <6.6.141
  • <f9204a2b78dd18374d3bcf9bf93d9021ce22de1b
  • =<*
  • <6.12.91
  • <5.16
  • =<6.12.*
  • =<6.6.*