{"id":"CVE-2025-38625","state":"PUBLISHED","title":"vfio/pds: Fix missing detach_ioas op","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/pds: Fix missing detach_ioas op\n\nWhen CONFIG_IOMMUFD is enabled and a device is bound to the pds_vfio_pci\ndriver, the following WARN_ON() trace is seen and probe fails:\n\nWARNING: CPU: 0 PID: 5040 at drivers/vfio/vfio_main.c:317 __vfio_register_dev+0x130/0x140 [vfio]\n<...>\npds_vfio_pci 0000:08:00.1: probe with driver pds_vfio_pci failed with error -22\n\nThis is because the driver's vfio_device_ops.detach_ioas isn't set.\n\nFix this by using the generic vfio_iommufd_physical_detach_ioas\nfunction.","publishedAt":"2025-08-22T16:00:33.860Z","updatedAt":"2026-05-11T21:31:50.677Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"7dbfae90c5a33f6b694e7068bc9522cc2655373d","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"1df8150ab4cc422bddfbd312d6758c50b688a971","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"b265dff9fcf047f660976a5c92c83e7c414a2d95","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"88b962fbd0ac30a65d2869c68d2f145be46ebe4d","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"fe24d5bc635e103a517ec201c3cb571eeab8be2f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/pds/vfio_dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.102","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.42","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/pds/vfio_dev.c"]}],"references":["https://git.kernel.org/stable/c/7dbfae90c5a33f6b694e7068bc9522cc2655373d","https://git.kernel.org/stable/c/1df8150ab4cc422bddfbd312d6758c50b688a971","https://git.kernel.org/stable/c/b265dff9fcf047f660976a5c92c83e7c414a2d95","https://git.kernel.org/stable/c/88b962fbd0ac30a65d2869c68d2f145be46ebe4d","https://git.kernel.org/stable/c/fe24d5bc635e103a517ec201c3cb571eeab8be2f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38625.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38625","state":"PUBLISHED","datePublished":"2025-08-22T16:00:33.860Z","dateUpdated":"2026-05-11T21:31:50.677Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.029Z"},"containers":{"cna":{"title":"vfio/pds: Fix missing detach_ioas op","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/pds: Fix missing detach_ioas op\n\nWhen CONFIG_IOMMUFD is enabled and a device is bound to the pds_vfio_pci\ndriver, the following WARN_ON() trace is seen and probe fails:\n\nWARNING: CPU: 0 PID: 5040 at drivers/vfio/vfio_main.c:317 __vfio_register_dev+0x130/0x140 [vfio]\n<...>\npds_vfio_pci 0000:08:00.1: probe with driver pds_vfio_pci failed with error -22\n\nThis is because the driver's vfio_device_ops.detach_ioas isn't set.\n\nFix this by using the generic vfio_iommufd_physical_detach_ioas\nfunction."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"7dbfae90c5a33f6b694e7068bc9522cc2655373d","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"1df8150ab4cc422bddfbd312d6758c50b688a971","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"b265dff9fcf047f660976a5c92c83e7c414a2d95","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"88b962fbd0ac30a65d2869c68d2f145be46ebe4d","versionType":"git"},{"version":"38fe3975b4c2c5eeefb543e09f9620da18b0d069","status":"affected","lessThan":"fe24d5bc635e103a517ec201c3cb571eeab8be2f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/pds/vfio_dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.102","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.42","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vfio/pci/pds/vfio_dev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7dbfae90c5a33f6b694e7068bc9522cc2655373d"},{"url":"https://git.kernel.org/stable/c/1df8150ab4cc422bddfbd312d6758c50b688a971"},{"url":"https://git.kernel.org/stable/c/b265dff9fcf047f660976a5c92c83e7c414a2d95"},{"url":"https://git.kernel.org/stable/c/88b962fbd0ac30a65d2869c68d2f145be46ebe4d"},{"url":"https://git.kernel.org/stable/c/fe24d5bc635e103a517ec201c3cb571eeab8be2f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:31:50.677Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.15.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.16.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}