---
id: CVE-2025-68782
title: 'scsi: target: Reset t_task_cdb pointer in error case'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  scsi: target: Reset t_task_cdb pointer in error case

  If allocation of cmd->t_task_cdb fails, it remains NULL but is later
  dereferenced in the 'err' path.

  In case of e…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    6cac97b12bdab04832e0416d049efcd0d48d303b
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    45fd86b444105c8bd07a763f58635c87e5dc7aea
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    8727663ded659aad55eef21e3864ebf5a4796a96
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    0260ad551b0815eb788d47f32899fbcd65d6f128
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    0d36db68fdb8a3325386fd9523b67735f944e1f3
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    8edbb9e371af186b4cf40819dab65fafe109df4d
  - >-
    Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 <
    5053eab38a4c4543522d0c320c639c56a8b59908
  - Linux 5.8
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-16T19:10:49.122593Z'
published: '2026-01-13'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T08:43:27.480Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-68782'
references:
  - url: 'https://git.kernel.org/stable/c/6cac97b12bdab04832e0416d049efcd0d48d303b'
  - url: 'https://git.kernel.org/stable/c/45fd86b444105c8bd07a763f58635c87e5dc7aea'
  - url: 'https://git.kernel.org/stable/c/8727663ded659aad55eef21e3864ebf5a4796a96'
  - url: 'https://git.kernel.org/stable/c/0260ad551b0815eb788d47f32899fbcd65d6f128'
  - url: 'https://git.kernel.org/stable/c/0d36db68fdb8a3325386fd9523b67735f944e1f3'
  - url: 'https://git.kernel.org/stable/c/8edbb9e371af186b4cf40819dab65fafe109df4d'
  - url: 'https://git.kernel.org/stable/c/5053eab38a4c4543522d0c320c639c56a8b59908'
tags:
  - cve.org
epss: 0.00587
epssPercentile: 0.45698
ingestedAt: '2026-09-08T15:33:26.995Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

scsi: target: Reset t_task_cdb pointer in error case

If allocation of cmd->t_task_cdb fails, it remains NULL but is later
dereferenced in the 'err' path.

In case of error, reset NULL t_task_cdb value to point at the default
fixed-size buffer.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

## Affected

- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 6cac97b12bdab04832e0416d049efcd0d48d303b`
- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 45fd86b444105c8bd07a763f58635c87e5dc7aea`
- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 8727663ded659aad55eef21e3864ebf5a4796a96`
- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 0260ad551b0815eb788d47f32899fbcd65d6f128`
- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 0d36db68fdb8a3325386fd9523b67735f944e1f3`
- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 8edbb9e371af186b4cf40819dab65fafe109df4d`
- `Linux >= 9e95fb805dc043cc8ed878a08d1583e4097a5f80 < 5053eab38a4c4543522d0c320c639c56a8b59908`
- `Linux 5.8`

## Remediation

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