{"id":"CVE-2025-38275","aliases":["CVE-2025-38275"],"related":[],"kind":"vulnerability","state":"published","title":"phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: phy: qcom-qmp-usb: Se corrige un error de NULL frente a IS_ERR(). La función auxiliar qmp_usb_iomap() actualmente devuelve el resultado sin procesar de devm_ioremap() para asignaciones no exclusivas. Dado que devm_ioremap() puede devolver un puntero NULL y el llamador solo comprueba los punteros de error con IS_ERR(), NULL podría omitir la comprobación y provocar una desreferencia no válida. Corrija el problema comprobando si devm_ioremap() devuelve NULL. Cuando lo hace, qmp_usb_iomap() ahora devuelve un puntero de error mediante IOMEM_ERR_PTR(-ENOMEM), lo que garantiza un manejo de errores seguro y consistente.","source":"nvd"}],"published":"2025-07-10T07:41:55.658Z","modified":"2026-06-17T09:16:31.833Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd","fixed":"0b979a409e40457ca1b5cb48755d1f34eee58805","status":"affected"},{"type":"git","introduced":"a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd","fixed":"127dfb4f1c5a2b622039c5d203f321380ea36665","status":"affected"},{"type":"git","introduced":"a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd","fixed":"5072c1749197fc28b27d7efc0d80320d7cac9572","status":"affected"},{"type":"git","introduced":"a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd","fixed":"0c33117f00c8c5363c22676931b22ae5041f7603","status":"affected"},{"type":"git","introduced":"a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd","fixed":"d14402a38c2d868cacb1facaf9be908ca6558e59","status":"affected"},{"type":"git","version":"368ea32e0ad0335bdf3180067875a928e35387c6","status":"affected"},{"type":"semver","introduced":"5.15.93","fixed":"5.16","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.142","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.94","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.34","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.3","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.93","fixed":"5.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.142"},{"status":"affected","introduced":"6.2","fixed":"6.6.94"},{"status":"affected","introduced":"6.7","fixed":"6.12.34"},{"status":"affected","introduced":"6.13","fixed":"6.15.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0b979a409e40457ca1b5cb48755d1f34eee58805","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/127dfb4f1c5a2b622039c5d203f321380ea36665","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5072c1749197fc28b27d7efc0d80320d7cac9572","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c33117f00c8c5363c22676931b22ae5041f7603","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d14402a38c2d868cacb1facaf9be908ca6558e59","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38275","url":"https://www.cve.org/CVERecord?id=CVE-2025-38275","licence":"CVE Terms of Use","modified":"2026-05-23T15:59:19.082Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38275","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38275","licence":"Public domain","modified":"2026-06-17T09:16:31.833Z"}],"updatedAt":"2026-11-25T22:59:01.049Z","epss":{"score":0.00212,"percentile":0.12261,"date":"2026-12-01T12:00:22.000Z"}}