{"id":"CVE-2025-38238","state":"PUBLISHED","title":"scsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out\n\nWhen both the RHBA and RPA FDMI requests time out, fnic reuses a frame to\nsend ABTS for each of them. On send completion, this causes an attempt to\nfree the same frame twice that leads to a crash.\n\nFix crash by allocating separate frames for RHBA and RPA, and modify ABTS\nlogic accordingly.\n\nTested by checking MDS for FDMI information.\n\nTested by using instrumented driver to:\n\n - Drop PLOGI response\n - Drop RHBA response\n - Drop RPA response\n - Drop RHBA and RPA response\n - Drop PLOGI response + ABTS response\n - Drop RHBA response + ABTS response\n - Drop RPA response + ABTS response\n - Drop RHBA and RPA response + ABTS response for both of them","publishedAt":"2025-07-09T10:42:23.538Z","updatedAt":"2026-10-15T21:52:12.048Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"09c1e6ab4ab2a107d96f119950dc330e446dc2b0","status":"affected","lessThan":"09679e9abedfbc5a2590759a1a7893c1c26e6044","versionType":"git"},{"version":"09c1e6ab4ab2a107d96f119950dc330e446dc2b0","status":"affected","lessThan":"a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/fnic/fdls_disc.c","drivers/scsi/fnic/fnic.h","drivers/scsi/fnic/fnic_fdls.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.15.5","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/fnic/fdls_disc.c","drivers/scsi/fnic/fnic.h","drivers/scsi/fnic/fnic_fdls.h"]}],"references":["https://git.kernel.org/stable/c/09679e9abedfbc5a2590759a1a7893c1c26e6044","https://git.kernel.org/stable/c/a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38238.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38238","state":"PUBLISHED","datePublished":"2025-07-09T10:42:23.538Z","dateUpdated":"2026-10-15T21:52:12.048Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.996Z"},"containers":{"cna":{"title":"scsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out\n\nWhen both the RHBA and RPA FDMI requests time out, fnic reuses a frame to\nsend ABTS for each of them. On send completion, this causes an attempt to\nfree the same frame twice that leads to a crash.\n\nFix crash by allocating separate frames for RHBA and RPA, and modify ABTS\nlogic accordingly.\n\nTested by checking MDS for FDMI information.\n\nTested by using instrumented driver to:\n\n - Drop PLOGI response\n - Drop RHBA response\n - Drop RPA response\n - Drop RHBA and RPA response\n - Drop PLOGI response + ABTS response\n - Drop RHBA response + ABTS response\n - Drop RPA response + ABTS response\n - Drop RHBA and RPA response + ABTS response for both of them"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"09c1e6ab4ab2a107d96f119950dc330e446dc2b0","status":"affected","lessThan":"09679e9abedfbc5a2590759a1a7893c1c26e6044","versionType":"git"},{"version":"09c1e6ab4ab2a107d96f119950dc330e446dc2b0","status":"affected","lessThan":"a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/fnic/fdls_disc.c","drivers/scsi/fnic/fnic.h","drivers/scsi/fnic/fnic_fdls.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.15.5","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/fnic/fdls_disc.c","drivers/scsi/fnic/fnic.h","drivers/scsi/fnic/fnic_fdls.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/09679e9abedfbc5a2590759a1a7893c1c26e6044"},{"url":"https://git.kernel.org/stable/c/a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The trigger is entirely controlled by the FCoE fabric peer — withholding both the FDMI RHBA and RPA responses after accepting the FDMI PLOGI — and FCoE/FIP is a non-routable layer-2 protocol confined to the shared FCoE VLAN/storage fabric, so the attacker must be on the same broadcast domain (or be the unauthenticated FCF, which FIP allows spoofing).\nAC:L - No race and no memory-layout precondition: the attacker simply does not answer the two FDMI registration requests, which deterministically drives fdls_fdmi_timer_callback() into fdls_send_fdmi_abts() with both REG_HBA_PENDING and RPA_PENDING set, sending the one allocated frame twice.\nPR:N - The attacker is a remote fabric peer with no account or privileges on the target host; the FDMI exchange is initiated automatically by the driver during fabric login and requires no local access whatsoever.\nUI:N - FDMI is enabled by default (fnic_fdmi_support = 1) and fnic_fdls_start_plogi() launches the FDMI sequence automatically on fabric PLOGI/link-up; no administrator or user action is needed.\nS:U - The double free corrupts the kernel slab allocator within the same security authority as the vulnerable driver; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The slab double-free hands the same 2112-byte object to two independent consumers, letting one exchange's kernel data be transmitted onto the fabric to the attacker, and freelist corruption on a mergeable cache is a standard stepping stone to arbitrary kernel memory disclosure.\nI:H - A double kmem_cache_free() of a live object is the canonical heap-corruption primitive — freelist poisoning and overlapping allocations yield a controlled write, compounded by the double dma_unmap_single() and the OX_ID write into an already-DMA-mapped buffer.\nA:H - The fix commit exists precisely because the second free crashes the kernel in fnic_wq_cmpl_handler; the resulting allocator corruption reliably panics the machine and takes the FC storage path down with it."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:00:36.529Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.15.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-38238","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:48:43.685518Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:52:12.048Z"}}]}}}