Skip to content
Heist/ feed
Back to feed
UnratedFix available

PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq() Starting with commit dd26c1a23fd5 ("PCI: rcar-host: Switch to msi_create_parent_irq_domain()"), the MSI parent IRQ domain is NULL because the object of type struct irq_domain_info passed to: msi_create_parent_irq_domain() -> irq_domain_instantiate()() -> __irq_domain_instantiate() has no reference to the parent IRQ domain. Using msi->domain->parent as an argument for generic_handle_domain_irq() leads to below error: "Unable to handle kernel NULL pointer dereference at virtual address" This error was identified while switching the upcoming RZ/G3S PCIe host controller driver to msi_create_parent_irq_domain() (which was using a similar pattern to handle MSIs (see link section)), but it was not tested on hardware using the pcie-rcar-host controller driver due to lack of hardware. [mani: reworded subject and description]

Products
Kernel
Affected versions
Not specified
Fixed versions
6.17.3
CVEs
CVE-2025-40076
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 22:32 UTC · Revision 1

Source evidence

PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq()

core-osv · Original source

Published 28 Oct 2025, 11:48 UTC

In the Linux kernel, the following vulnerability has been resolved: PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq() Starting with commit dd26c1a23fd5 ("PCI: rcar-host: Switch to msi_create_parent_irq_domain()"), the MSI parent IRQ domain is NULL because the object of type struct irq_domain_info passed to: msi_create_parent_irq_domain() -> irq_domain_instantiate()() -> __irq_domain_instantiate() has no reference to the parent IRQ domain. Using msi->domain->parent as an argument for generic_handle_domain_irq() leads to below error: "Unable to handle kernel NULL pointer dereference at virtual address" This error was identified while switching the upcoming RZ/G3S PCIe host controller driver to msi_create_parent_irq_domain() (which was using a similar pattern to handle MSIs (see link section)), but it was not tested on hardware using the pcie-rcar-host controller driver due to lack of hardware. [mani: reworded subject and description]

osv:CVE-2025-40076

Kernel

Fixed versions: 6.17.3

Complete source record
{
  "id": "b8ea426e5ff0ec25867ad2ce8b97d1101062425df9ab8ef77582afbb7ad55509",
  "url": "https://osv.dev/vulnerability/CVE-2025-40076",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: PCI: rcar-host: Pass proper IRQ domain to generic_handle_domain_irq() Starting with commit dd26c1a23fd5 (\"PCI: rcar-host: Switch to msi_create_parent_irq_domain()\"), the MSI parent IRQ domain is NULL because the object of type struct irq_domain_info passed to: msi_create_parent_irq_domain() -> irq_domain_instantiate()() -> __irq_domain_instantiate() has no reference to the parent IRQ domain. Using msi->domain->parent as an argument for generic_handle_domain_irq() leads to below error: \"Unable to handle kernel NULL pointer dereference at virtual address\" This error was identified while switching the upcoming RZ/G3S PCIe host controller driver to msi_create_parent_irq_domain() (which was using a similar pattern to handle MSIs (see link section)), but it was not tested on hardware using the pcie-rcar-host controller driver due to lack of hardware. [mani: reworded subject and description]",
    "evidence": "osv:CVE-2025-40076",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.17.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40076",
      "aliases": [
        "CVE-2025-40076"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dd26c1a23fd5a607c50738ea0dcb6cdbb8185cfe"
                },
                {
                  "fixed": "e8e21aaf5d34015901cd271053a67a62b4204526"
                },
                {
                  "fixed": "d3fee10e40a938331e2aae34348691136db31304"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40076.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.17.0"
                },
                {
                  "fixed": "6.17.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40076.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.926692519Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/d3fee10e40a938331e2aae34348691136db31304",
        "https://git.kernel.org/stable/c/e8e21aaf5d34015901cd271053a67a62b4204526",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40076.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40076",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40076.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40076",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499155,
  "published_at": "2025-10-28T11:48:42.385+00:00"
}