pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy()
In the Linux kernel, the following vulnerability has been resolved: pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy() In scpsys_get_bus_protection_legacy(), of_find_node_with_property() returns a device node with its reference count incremented. The function then calls of_node_put(node) before checking whether syscon_regmap_lookup_by_phandle() returns an error. If an error occurs, dev_err_probe() dereferences the node pointer to print diagnostic information, but the node memory may have already been freed due to the earlier of_node_put(), leading to a use-after-free vulnerability. Fix this by moving the of_node_put() call after the error check, ensuring the node is still valid when accessed in the error path.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.30, 7.0.7
- CVEs
- CVE-2026-46308
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:32 UTC · Revision 1
Source evidence
pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy()
core-osv · Original sourcePublished 8 Jun 2026, 15:46 UTC
In the Linux kernel, the following vulnerability has been resolved: pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy() In scpsys_get_bus_protection_legacy(), of_find_node_with_property() returns a device node with its reference count incremented. The function then calls of_node_put(node) before checking whether syscon_regmap_lookup_by_phandle() returns an error. If an error occurs, dev_err_probe() dereferences the node pointer to print diagnostic information, but the node memory may have already been freed due to the earlier of_node_put(), leading to a use-after-free vulnerability. Fix this by moving the of_node_put() call after the error check, ensuring the node is still valid when accessed in the error path.
osv:CVE-2026-46308
Kernel
Fixed versions: 6.18.30, 7.0.7
Complete source record
{
"id": "ba5f4aa49f418fdb5fbb16e64a627e13c2b12e7190f67a0a8a599c4b2b3e4ccb",
"url": "https://osv.dev/vulnerability/CVE-2026-46308",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: pmdomain: mediatek: fix use-after-free in scpsys_get_bus_protection_legacy() In scpsys_get_bus_protection_legacy(), of_find_node_with_property() returns a device node with its reference count incremented. The function then calls of_node_put(node) before checking whether syscon_regmap_lookup_by_phandle() returns an error. If an error occurs, dev_err_probe() dereferences the node pointer to print diagnostic information, but the node memory may have already been freed due to the earlier of_node_put(), leading to a use-after-free vulnerability. Fix this by moving the of_node_put() call after the error check, ensuring the node is still valid when accessed in the error path.",
"evidence": "osv:CVE-2026-46308",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.30",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-46308",
"aliases": [
"CVE-2026-46308"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c29345fa5f66bea0790cf2219f57b974d4fc177b"
},
{
"fixed": "cb27e43c0511e9e1ca8818d231656070b11c18cf"
},
{
"fixed": "38d8410021b55d226847b2ac8d189d89fe5a8866"
},
{
"fixed": "ec1fcddb3117d9452210e838fd37389ee61e10e8"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46308.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.18.0"
},
{
"fixed": "6.18.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46308.json"
}
}
],
"modified": "2026-10-28T02:30:23.739645330Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/38d8410021b55d226847b2ac8d189d89fe5a8866",
"https://git.kernel.org/stable/c/cb27e43c0511e9e1ca8818d231656070b11c18cf",
"https://git.kernel.org/stable/c/ec1fcddb3117d9452210e838fd37389ee61e10e8",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46308.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-46308",
"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/2026/46xxx/CVE-2026-46308.json"
}
},
"related_cves": [
{
"value": "CVE-2026-46308",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489902,
"published_at": "2026-06-08T15:46:36.218+00:00"
}