of/address: Fix NULL bus dereference in of_pci_range_parser_one()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.447.1.87.2In the Linux kernel, the following vulnerability has been resolved:
of/address: Fix NULL bus dereference in of_pci_range_parser_one()
The bus matching rework made of_match_bus() return NULL for nodes with ranges/dma-ranges but no local #address-cells. parser_init() stored that NULL bus, and the range iterator later dereferenced it.
Reject such nodes in parser_init(), leaving an explicit empty iterator for callers that ignore the init return, and make of_dma_get_max_cpu_address() honour the init failure so a rejected node cannot clamp the DMA limit.
From the CVE record · Linux
The Linux kernel can dereference a NULL bus pointer while parsing a node with ranges or dma-ranges but no local #address-cells. The input does not establish whether an attacker can trigger this, or specify access or user-interaction requirements.
Engineers running Linux kernels with the affected OF address range parser should check their kernel versions against the vendor advisory; affected versions were not provided.