VDB

CVE-2025-38700

CVE-2025-38700 PUBLISHED

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.

PackageEcosystemFixed in
kernel-develAmazon Linux4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023
perfAmazon Linux4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023
kernel-tools-develAmazon Linux4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023
python-perfAmazon Linux4.14.355-280.695.amzn2
kernel6.12-libbpf-staticAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.46-66.121.amzn2023
kernelAmazon Linux4.14.355-280.695.amzn2, 1:6.1.150-174.273.amzn2023
kernel-livepatch-6.1.150-174.273Amazon Linux1:1.0-0.amzn2023
kernel-livepatch-4.14.355-280.695Amazon Linux1.0-0.amzn2
kernel-libbpfAmazon Linux1:6.1.150-174.273.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.46-66.121.amzn2023

10 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux5d91e209fb21fb9cc765729d4c6a85a9fb6c9187, 5d91e209fb21fb9cc765729d4c6a85a9fb6c9187, 5d91e209fb21fb9cc765729d4c6a85a9fb6c9187
LinuxLinux2.6.27, 0, 5.4.297
amazon:2023kernel-devel0
amazon:2perf0
amazon:2023kernel-tools-devel0
amazon:2python-perf0
amazon:2023kernel6.12-libbpf-static0
SiemensSIMATIC CN 41000
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel0
amazon:2023perf0
amazon:2023kernel-livepatch-6.1.150-174.2730
amazon:2kernel-livepatch-4.14.355-280.6950
amazon:2023kernel-libbpf0
amazon:2023kernel6.12-modules-extra0
amazon:2kernel-tools0
amazon:2kernel-headers0
amazon:2023kernel-libbpf-static0
amazon:2kernel-tools-devel0

…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

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