{"id":"CVE-2025-38275","summary":"phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nphy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug\n\nThe qmp_usb_iomap() helper function currently returns the raw result of\ndevm_ioremap() for non-exclusive mappings. Since devm_ioremap() may return\na NULL pointer and the caller only checks error pointers with IS_ERR(),\nNULL could bypass the check and lead to an invalid dereference.\n\nFix the issue by checking if devm_ioremap() returns NULL. When it does,\nqmp_usb_iomap() now returns an error pointer via IOMEM_ERR_PTR(-ENOMEM),\nensuring safe and consistent error handling.","modified":"2026-04-16T04:34:53.800454214Z","published":"2025-07-10T07:41:55.658Z","related":["SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38275.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0b979a409e40457ca1b5cb48755d1f34eee58805"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0c33117f00c8c5363c22676931b22ae5041f7603"},{"type":"WEB","url":"https://git.kernel.org/stable/c/127dfb4f1c5a2b622039c5d203f321380ea36665"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5072c1749197fc28b27d7efc0d80320d7cac9572"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d14402a38c2d868cacb1facaf9be908ca6558e59"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38275.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38275"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd"},{"fixed":"0b979a409e40457ca1b5cb48755d1f34eee58805"},{"fixed":"127dfb4f1c5a2b622039c5d203f321380ea36665"},{"fixed":"5072c1749197fc28b27d7efc0d80320d7cac9572"},{"fixed":"0c33117f00c8c5363c22676931b22ae5041f7603"},{"fixed":"d14402a38c2d868cacb1facaf9be908ca6558e59"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"368ea32e0ad0335bdf3180067875a928e35387c6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38275.json"}}],"schema_version":"1.7.5"}