memory: of: Fix refcount leak bug in of_get_ddr_timings()
Published Sep 15, 2025
5.5
MEDIUMCVSS 3.1
EPSS 0.16%
Description
We should add the of_node_put() when breaking out of for_each_child_of_node() as it will automatically increase and decrease the refcount.
Affected products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 3.7
Unaffected
- ≥ 0, < 3.7
- ≥ 4.14.296, ≤ 4.14.*
- ≥ 4.19.262, ≤ 4.19.*
- ≥ 4.9.331, ≤ 4.9.*
- ≥ 5.10.150, ≤ 5.10.*
- ≥ 5.15.75, ≤ 5.15.*
- ≥ 5.19.17, ≤ 5.19.*
- ≥ 5.4.220, ≤ 5.4.*
- ≥ 6.0.3, ≤ 6.0.*
- 6.1
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Linux | Linux | unaffected | Affected
|
| Linux | Linux | affected | Affected
Unaffected
|
- ≥ 3.7 · < 4.9.331
- ≥ 4.10 · < 4.14.296
- ≥ 4.15 · < 4.19.262
- ≥ 4.20 · < 5.4.220
- ≥ 5.5 · < 5.10.150
- ≥ 5.11 · < 5.15.75
- ≥ 5.16 · < 5.19.17
- ≥ 6.0 · < 6.0.3
No data.
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (15)
- https://access.redhat.com/security/cve/CVE-2022-50249 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2395318 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-55503 Advisory
- https://git.kernel.org/stable/c/05215fb32010d4afb68fbdbb4d237df6e2d4567b Patch
- https://git.kernel.org/stable/c/1c6cac6fa4d08aea161f83d38117d733b3c3a000 Patch
- https://git.kernel.org/stable/c/2680690f9ce4e6abbb4f559e97271c15b7eeda97 Patch
- https://git.kernel.org/stable/c/62ccab6e3376f8a22167c3b81468ae4f3e7d25f1 Patch
- https://git.kernel.org/stable/c/68c9c4e6495b825be3a8946df1a0148399555fe4 Patch
- https://git.kernel.org/stable/c/85a40bfb8e7a170abcf9dae2c0898a1983e48daa Patch
- https://git.kernel.org/stable/c/a4d0bd4388e1a39df47e8aaa044ef6a7ee626e48 Patch
- https://git.kernel.org/stable/c/a4f7eb83852a65b6f8dea7dcc42b7c76d4d9b0a3 Patch
- https://git.kernel.org/stable/c/daaec4b3fe2297b022c6b2d6bf48b6e5265a60b9 Patch
- https://lore.kernel.org/linux-cve-announce/2025091549-CVE-2022-50249-bfbe@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-50249
- https://www.cve.org/CVERecord?id=CVE-2022-50249
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
GitHub
No data