{"id":"CVE-2025-40076","aliases":["CVE-2025-40076"],"related":[],"kind":"vulnerability","state":"published","title":"PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq()\n\nStarting with commit dd26c1a23fd5 (\"PCI: rcar-host: Switch to\nmsi_create_parent_irq_domain()\"), the MSI parent IRQ domain is NULL because\nthe object of type struct irq_domain_info passed to:\n\nmsi_create_parent_irq_domain() ->\n  irq_domain_instantiate()() ->\n    __irq_domain_instantiate()\n\nhas no reference to the parent IRQ domain. Using msi->domain->parent as an\nargument for generic_handle_domain_irq() leads to below error:\n\n\t\"Unable to handle kernel NULL pointer dereference at virtual address\"\n\nThis error was identified while switching the upcoming RZ/G3S PCIe host\ncontroller driver to msi_create_parent_irq_domain() (which was using a\nsimilar pattern to handle MSIs (see link section)), but it was not tested\non hardware using the pcie-rcar-host controller driver due to lack of\nhardware.\n\n[mani: reworded subject and description]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq()\n\nStarting with commit dd26c1a23fd5 (\"PCI: rcar-host: Switch to\nmsi_create_parent_irq_domain()\"), the MSI parent IRQ domain is NULL because\nthe object of type struct irq_domain_info passed to:\n\nmsi_create_parent_irq_domain() ->\n  irq_domain_instantiate()() ->\n    __irq_domain_instantiate()\n\nhas no reference to the parent IRQ domain. Using msi->domain->parent as an\nargument for generic_handle_domain_irq() leads to below error:\n\n\t\"Unable to handle kernel NULL pointer dereference at virtual address\"\n\nThis error was identified while switching the upcoming RZ/G3S PCIe host\ncontroller driver to msi_create_parent_irq_domain() (which was using a\nsimilar pattern to handle MSIs (see link section)), but it was not tested\non hardware using the pcie-rcar-host controller driver due to lack of\nhardware.\n\n[mani: reworded subject and description]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nPCI: rcar-host: Pasar el dominio IRQ adecuado a generic_handle_domain_irq()\n\nA partir del commit dd26c1a23fd5 ('PCI: rcar-host: Cambiar a msi_create_parent_irq_domain()'), el dominio IRQ padre de MSI es NULL porque el objeto de tipo struct irq_domain_info pasado a:\n\nmsi_create_parent_irq_domain() ->\n  irq_domain_instantiate()() ->\n    __irq_domain_instantiate()\n\nno tiene referencia al dominio IRQ padre. Usar msi->domain->parent como argumento para generic_handle_domain_irq() lleva al siguiente error:\n\n\t'No se puede manejar la desreferencia de puntero NULL del kernel en la dirección virtual'\n\nEste error fue identificado mientras se cambiaba el próximo controlador de host PCIe RZ/G3S a msi_create_parent_irq_domain() (el cual estaba usando un patrón similar para manejar MSIs (ver sección de enlaces)), pero no fue probado en hardware usando el controlador pcie-rcar-host debido a la falta de hardware.\n\n[mani: se reformuló el asunto y la descripción]","source":"nvd"}],"published":"2025-10-28T11:48:42.385Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dd26c1a23fd5a607c50738ea0dcb6cdbb8185cfe","fixed":"e8e21aaf5d34015901cd271053a67a62b4204526","status":"affected"},{"type":"git","introduced":"dd26c1a23fd5a607c50738ea0dcb6cdbb8185cfe","fixed":"d3fee10e40a938331e2aae34348691136db31304","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e8e21aaf5d34015901cd271053a67a62b4204526","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3fee10e40a938331e2aae34348691136db31304","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40076","url":"https://www.cve.org/CVERecord?id=CVE-2025-40076","licence":"CVE Terms of Use","modified":"2026-05-11T21:42:01.057Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40076","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40076","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.946Z","epss":{"score":0.00184,"percentile":0.08408,"date":"2026-12-01T12:00:22.000Z"}}