CVE-2025-38399
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-devel | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| Linux | Linux | 5.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039 |
| Linux | Linux | 5.9, 0, 5.10.240 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel-tools | 0 |
| Linux | Linux | *, 6.16, 6.12.37 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
…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