VDB

CVE-2025-38399

CVE-2025-38399 PUBLISHED CVSS 7.5 HIGH

scsi: target: Fix NULL pointer dereference in core_scsi3_decode_spec_i_port()

Reported by linux · Published July 25, 2025

In the Linux kernel, the following vulnerability has been resolved: scsi: target: Fix NULL pointer dereference in core_scsi3_decode_spec_i_port() The function core_scsi3_decode_spec_i_port(), in its error code path, unconditionally calls core_scsi3_lunacl_undepend_item() passing the dest_se_deve pointer, which may be NULL. This can lead to a NULL pointer dereference if dest_se_deve remains unset. SPC-3 PR SPEC_I_PT: Unable to locate dest_tpg Unable to handle kernel paging request at virtual address dfff800000000012 Call trace: core_scsi3_lunacl_undepend_item+0x2c/0xf0 [target_core_mod] (P) core_scsi3_decode_spec_i_port+0x120c/0x1c30 [target_core_mod] core_scsi3_emulate_pro_register+0x6b8/0xcd8 [target_core_mod] target_scsi3_emulate_pr_out+0x56c/0x840 [target_core_mod] Fix this by adding a NULL check before calling core_scsi3_lunacl_undepend_item()

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-develAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-headersAmazon Linux1:6.12.37-61.105.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.37-61.105.amzn2023
kernel-toolsAmazon Linux1:6.1.144-170.251.amzn2023
LinuxLinux5.9

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxf32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039
LinuxLinux5.9, 0, 5.10.240
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-tools0
LinuxLinux*, 6.16, 6.12.37
amazon:2023python3-perf0
amazon:2023kernel-headers0
amazon:2023perf0
amazon:2023kernel6.12-tools0
amazon:2023python3-perf6.120
amazon:2023bpftool0
amazon:2023bpftool6.120
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-devel0
amazon:2023kernel6.12-libbpf0

…and 12 more

Timeline

  • Jul 25, 2025 CVE Published
  • Jul 26, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (16 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (243 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (260 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Oct 7, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38399
vulnetix vdb fixes CVE-2025-38399

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38399/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›