CVE-2025-38700
scsi: libiscsi: Initialize iscsi_conn->dd_data only if memory is allocated
Reported by linux · Published September 4, 2025
In the Linux kernel, the following vulnerability has been resolved: scsi: libiscsi: Initialize iscsi_conn->dd_data only if memory is allocated In case of an ib_fast_reg_mr allocation failure during iSER setup, the machine hits a panic because iscsi_conn->dd_data is initialized unconditionally, even when no memory is allocated (dd_size == 0). This leads invalid pointer dereference during connection teardown. Fix by setting iscsi_conn->dd_data only if memory is actually allocated. Panic trace: ------------ iser: iser_create_fastreg_desc: Failed to allocate ib_fast_reg_mr err=-12 iser: iser_alloc_rx_descriptors: failed allocating rx descriptors / data buffers BUG: unable to handle page fault for address: fffffffffffffff8 RIP: 0010:swake_up_locked.part.5+0xa/0x40 Call Trace: complete+0x31/0x40 iscsi_iser_conn_stop+0x88/0xb0 [ib_iser] iscsi_stop_conn+0x66/0xc0 [scsi_transport_iscsi] iscsi_if_stop_conn+0x14a/0x150 [scsi_transport_iscsi] iscsi_if_rx+0x1135/0x1834 [scsi_transport_iscsi] ? netlink_lookup+0x12f/0x1b0 ? netlink_deliver_tap+0x2c/0x200 netlink_unicast+0x1ab/0x280 netlink_sendmsg+0x257/0x4f0 ? _copy_from_user+0x29/0x60 sock_sendmsg+0x5f/0x70
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023 |
| perf | Amazon Linux | 4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023 |
| kernel-tools-devel | Amazon Linux | 4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023 |
| python-perf | Amazon Linux | 4.14.355-280.695.amzn2 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel | Amazon Linux | 4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023 |
| kernel-livepatch-6.1.150-174.273 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-livepatch-4.14.355-280.695 | Amazon Linux | 1.0-0.amzn2 |
| kernel-libbpf | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
10 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5d91e209fb21fb9cc765729d4c6a85a9fb6c9187, 5d91e209fb21fb9cc765729d4c6a85a9fb6c9187, 5d91e209fb21fb9cc765729d4c6a85a9fb6c9187 |
| Linux | Linux | 2.6.27, 0, 5.4.297 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2 | perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| Siemens | SIMATIC CN 4100 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-livepatch-6.1.150-174.273 | 0 |
| amazon:2 | kernel-livepatch-4.14.355-280.695 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2 | kernel-tools-devel | 0 |
…and 21 more
Timeline
- Sep 4, 2025 CVE Published
- Sep 5, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (18 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (173 in total, the first dated here)
- Mar 29, 2026 Security Advisory (186 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38700
vulnetix vdb fixes CVE-2025-38700
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-38700/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart