{"id":"CVE-2025-38134","state":"PUBLISHED","title":"usb: acpi: Prevent null pointer dereference in usb_acpi_add_usb4_devlink()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: acpi: Prevent null pointer dereference in usb_acpi_add_usb4_devlink()\n\nAs demonstrated by the fix for update_port_device_state,\ncommit 12783c0b9e2c (\"usb: core: Prevent null pointer dereference in update_port_device_state\"),\nusb_hub_to_struct_hub() can return NULL in certain scenarios,\nsuch as during hub driver unbind or teardown race conditions,\neven if the underlying usb_device structure exists.\n\nPlus, all other places that call usb_hub_to_struct_hub() in the same file\ndo check for NULL return values.\n\nIf usb_hub_to_struct_hub() returns NULL, the subsequent access to\nhub->ports[udev->portnum - 1] will cause a null pointer dereference.","publishedAt":"2025-07-03T08:35:37.674Z","updatedAt":"2026-05-11T21:21:55.142Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f1bfb4a6fed64de1771b43a76631942279851744","status":"affected","lessThan":"8fa544bff8466062e42949c93f3e528f4be5624b","versionType":"git"},{"version":"f1bfb4a6fed64de1771b43a76631942279851744","status":"affected","lessThan":"e3d530173b70514d4390a94f9f979acad689b70a","versionType":"git"},{"version":"f1bfb4a6fed64de1771b43a76631942279851744","status":"affected","lessThan":"73fb0ec9436ae87bcae067ce35d6cdd72bade86c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/core/usb-acpi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.34","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.3","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/usb/core/usb-acpi.c"]}],"references":["https://git.kernel.org/stable/c/8fa544bff8466062e42949c93f3e528f4be5624b","https://git.kernel.org/stable/c/e3d530173b70514d4390a94f9f979acad689b70a","https://git.kernel.org/stable/c/73fb0ec9436ae87bcae067ce35d6cdd72bade86c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38134.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38134","state":"PUBLISHED","datePublished":"2025-07-03T08:35:37.674Z","dateUpdated":"2026-05-11T21:21:55.142Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.987Z"},"containers":{"cna":{"title":"usb: acpi: Prevent null pointer dereference in usb_acpi_add_usb4_devlink()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: acpi: Prevent null pointer dereference in usb_acpi_add_usb4_devlink()\n\nAs demonstrated by the fix for update_port_device_state,\ncommit 12783c0b9e2c (\"usb: core: Prevent null pointer dereference in update_port_device_state\"),\nusb_hub_to_struct_hub() can return NULL in certain scenarios,\nsuch as during hub driver unbind or teardown race conditions,\neven if the underlying usb_device structure exists.\n\nPlus, all other places that call usb_hub_to_struct_hub() in the same file\ndo check for NULL return values.\n\nIf usb_hub_to_struct_hub() returns NULL, the subsequent access to\nhub->ports[udev->portnum - 1] will cause a null pointer dereference."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f1bfb4a6fed64de1771b43a76631942279851744","status":"affected","lessThan":"8fa544bff8466062e42949c93f3e528f4be5624b","versionType":"git"},{"version":"f1bfb4a6fed64de1771b43a76631942279851744","status":"affected","lessThan":"e3d530173b70514d4390a94f9f979acad689b70a","versionType":"git"},{"version":"f1bfb4a6fed64de1771b43a76631942279851744","status":"affected","lessThan":"73fb0ec9436ae87bcae067ce35d6cdd72bade86c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/core/usb-acpi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.34","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.3","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/usb/core/usb-acpi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8fa544bff8466062e42949c93f3e528f4be5624b"},{"url":"https://git.kernel.org/stable/c/e3d530173b70514d4390a94f9f979acad689b70a"},{"url":"https://git.kernel.org/stable/c/73fb0ec9436ae87bcae067ce35d6cdd72bade86c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:21:55.142Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.15.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}