driver: base: fix UAF when driver_attach failed
Published Feb 26, 2025
7.8
HIGHCVSS 3.1
EPSS 0.30%
Description
When driver_attach(drv); failed, the driver_private will be freed. But it has been added to the bus, which caused a UAF.
To fix it, we need to delete it from the bus when failed.
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 3.9StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<3.9
- Version 5.10.122StatusunaffectedConstraints<=5.10.*
- Version 5.15.47StatusunaffectedConstraints<=5.15.*
- Version 5.17.15StatusunaffectedConstraints<=5.17.*
- Version 5.18.4StatusunaffectedConstraints<=5.18.*
- Version 5.19StatusunaffectedConstraints<=*
- Version 5.4.198StatusunaffectedConstraints<=5.4.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| |||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- ≥ 3.9 · < 5.4.198
- ≥ 5.5 · < 5.10.122
- ≥ 5.11 · < 5.15.47
- ≥ 5.16 · < 5.17.15
- ≥ 5.18 · < 5.18.4
No data.
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
kernel-0:5.14.0-70.144.1.el9_0
Fixed · RHSA-2025:14744
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
kernel-rt-0:5.14.0-70.144.1.rt21.216.el9_0
Fixed · RHSA-2025:14749
Red Hat Enterprise Linux 10
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel
Out of support scope
Red Hat Enterprise Linux 8
kernel-rt
Out of support scope
Red Hat Enterprise Linux 9
kernel
Affected
Red Hat Enterprise Linux 9
kernel-rt
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | kernel-0:5.14.0-70.144.1.el9_0 | Fixed | RHSA-2025:14744 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | kernel-rt-0:5.14.0-70.144.1.rt21.216.el9_0 | Fixed | RHSA-2025:14749 |
| Red Hat Enterprise Linux 10 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 9 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Feb 27, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2025–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (4 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.30% (0.00297) | 20.23th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.28% (0.00284) | 19.94th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.04% (0.00039) | 8.68th | v4 (v2025.03.14) |
| Feb 27, 2025 | 0.04% (0.00044) | 12.72th | v3 (v2023.03.01) |
References (11)
- https://access.redhat.com/security/cve/CVE-2022-49385 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2348020 Issue Tracking
- https://git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27 Patch
- https://git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961df Patch
- https://git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b Patch
- https://git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4 Patch
- https://git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86 Patch
- https://git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21 Patch
- https://lore.kernel.org/linux-cve-announce/2025022648-CVE-2022-49385-258c@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-49385
- https://www.cve.org/CVERecord?id=CVE-2022-49385
Change history (0)
No recorded changes yet.