CVE-2025-38399
scsi: target: Fix NULL pointer dereference in core_scsi3_decode_spec_i_port()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1129e0e0a833acf90429e0f13951068d5f026e4f; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1627dda4d70ceb1ba62af2e401af73c09abb1eb5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 55dfffc5e94730370b08de02c0cf3b7c951bbe9e; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 7296c938df2445f342be456a6ff0b3931d97f4e5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < c412185d557578d3f936537ed639c4ffaaed4075; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < d8ab68bdb294b09a761e967dad374f2965e1913f
- Anyone running Linux 5.9
Vulnerability facts
- Affected
- Linux >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1129e0e0a833acf90429e0f13951068d5f026e4f; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1627dda4d70ceb1ba62af2e401af73c09abb1eb5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 55dfffc5e94730370b08de02c0cf3b7c951bbe9e; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 7296c938df2445f342be456a6ff0b3931d97f4e5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < c412185d557578d3f936537ed639c4ffaaed4075; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < d8ab68bdb294b09a761e967dad374f2965e1913f; Linux 5.9
- Fixed in
- Linux 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c, Linux 1129e0e0a833acf90429e0f13951068d5f026e4f, Linux 1627dda4d70ceb1ba62af2e401af73c09abb1eb5, Linux 55dfffc5e94730370b08de02c0cf3b7c951bbe9e, Linux 7296c938df2445f342be456a6ff0b3931d97f4e5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.77% chance of exploitation in 30 days (percentile 52, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
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()
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1129e0e0a833acf90429e0f13951068d5f026e4f; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1627dda4d70ceb1ba62af2e401af73c09abb1eb5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 55dfffc5e94730370b08de02c0cf3b7c951bbe9e; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 7296c938df2445f342be456a6ff0b3931d97f4e5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < c412185d557578d3f936537ed639c4ffaaed4075; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < d8ab68bdb294b09a761e967dad374f2965e1913f | — | cvelist |
| Linux | 5.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38399. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38399.md Affected: Linux >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1129e0e0a833acf90429e0f13951068d5f026e4f; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1627dda4d70ceb1ba62af2e401af73c09abb1eb5; >= f32ba612ef0f8eecaf6d2a5… Fixed in: Linux 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c, Linux 1129e0e0a833acf90429e0f13951068d5f026e4f, Linux 1627dda4d70ceb1ba62af2e401af73c09abb1eb5, Linux 55dfffc5e94730370b08de02c0cf3b7c951bbe9e, Linux 7296c938df2445f342be456a6ff0b3931d97f4e5 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/70ddb8133fdb512d4b1f2b4fd1c9e518514f182c
- https://git.kernel.org/stable/c/1129e0e0a833acf90429e0f13951068d5f026e4f
- https://git.kernel.org/stable/c/1627dda4d70ceb1ba62af2e401af73c09abb1eb5
- https://git.kernel.org/stable/c/55dfffc5e94730370b08de02c0cf3b7c951bbe9e
- https://git.kernel.org/stable/c/7296c938df2445f342be456a6ff0b3931d97f4e5
- https://git.kernel.org/stable/c/c412185d557578d3f936537ed639c4ffaaed4075
- https://git.kernel.org/stable/c/d8ab68bdb294b09a761e967dad374f2965e1913f
FAQ
Is CVE-2025-38399 being exploited?
There is no confirmed exploitation: CVE-2025-38399 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.77% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38399?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-38399?
Linux >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1129e0e0a833acf90429e0f13951068d5f026e4f; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 1627dda4d70ceb1ba62af2e401af73c09abb1eb5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 55dfffc5e94730370b08de02c0cf3b7c951bbe9e; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < 7296c938df2445f342be456a6ff0b3931d97f4e5; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < c412185d557578d3f936537ed639c4ffaaed4075; >= f32ba612ef0f8eecaf6d2a5b04076ee7ea9ed039, < d8ab68bdb294b09a761e967dad374f2965e1913f; Linux 5.9.
Is there a fix for CVE-2025-38399?
Yes. Fixed in Linux 70ddb8133fdb512d4b1f2b4fd1c9e518514f182c, Linux 1129e0e0a833acf90429e0f13951068d5f026e4f, Linux 1627dda4d70ceb1ba62af2e401af73c09abb1eb5, Linux 55dfffc5e94730370b08de02c0cf3b7c951bbe9e, Linux 7296c938df2445f342be456a6ff0b3931d97f4e5. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-38399?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.