---
id: CVE-2026-23112
title: 'nvmet-tcp: add bounds checks in nvmet_tcp_build_pdu_iovec'
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 u…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    0b9981751be14b59b4473383c731c833738aebdb
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    42afe8ed8ad2de9c19457156244ef3e1eca94b5d
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    1385be357e8acd09b36e026567f3a9d5c61139de
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    dca1a6ba0da9f472ef040525fab10fd9956db59f
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    19672ae68d52ff75347ebe2420dde1b07adca09f
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    ab200d71553bdcf4de554a5985b05b2dd606bc57
  - >-
    Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 <
    52a0a98549344ca20ad81a4176d68d28e3c05a5c
  - Linux 5.0
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-16T15:06:29.646849Z'
published: '2026-02-13'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T15:09:49.412Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-23112'
references:
  - url: 'https://git.kernel.org/stable/c/0b9981751be14b59b4473383c731c833738aebdb'
  - url: 'https://git.kernel.org/stable/c/42afe8ed8ad2de9c19457156244ef3e1eca94b5d'
  - url: 'https://git.kernel.org/stable/c/1385be357e8acd09b36e026567f3a9d5c61139de'
  - url: 'https://git.kernel.org/stable/c/dca1a6ba0da9f472ef040525fab10fd9956db59f'
  - url: 'https://git.kernel.org/stable/c/19672ae68d52ff75347ebe2420dde1b07adca09f'
  - url: 'https://git.kernel.org/stable/c/ab200d71553bdcf4de554a5985b05b2dd606bc57'
  - url: 'https://git.kernel.org/stable/c/52a0a98549344ca20ad81a4176d68d28e3c05a5c'
tags:
  - cve.org
epss: 0.00467
epssPercentile: 0.39015
ingestedAt: '2026-10-16T17:24:46.639Z'
---

## Overview

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

- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 0b9981751be14b59b4473383c731c833738aebdb`
- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 42afe8ed8ad2de9c19457156244ef3e1eca94b5d`
- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 1385be357e8acd09b36e026567f3a9d5c61139de`
- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < dca1a6ba0da9f472ef040525fab10fd9956db59f`
- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 19672ae68d52ff75347ebe2420dde1b07adca09f`
- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < ab200d71553bdcf4de554a5985b05b2dd606bc57`
- `Linux >= 872d26a391da92ed8f0c0f5cb5fef428067b7f30 < 52a0a98549344ca20ad81a4176d68d28e3c05a5c`
- `Linux 5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
