CVE-2022-49385
driver: base: fix UAF when driver_attach failed
HIGH 7.8
At a glance
- Source
- NVD
- EPSS
- EPSS 0.30 % · percentile 22 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Analyzed
Description
In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed 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.
Weaknesses (CWE)
- CWE-416 — Use After Free
References
- https://git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b
- https://git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4
- https://git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21
- https://git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961df
- https://git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86
- https://git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
European references
- ENISA EUVD · EUVD-2022-54844
- GCVE · GCVE-0-2022-49385
CERT-FR advisories
- CERTFR-2025-AVI-0744 — Multiples vulnérabilités dans le noyau Linux de Red Hat · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0449 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0336 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0307 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0252 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 3.9 < 5.4.198cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.5 < 5.10.122cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.11 < 5.15.47cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.16 < 5.17.15cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.18 < 5.18.4
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 190888ac01d059e38ffe77a2291d44cafa9016fb < 5d709f58c743166fe1c6914b9de0ae8868600d9b ; affected 190888ac01d059e38ffe77a2291d44cafa9016fb < 823f24f2e329babd0330200d0b74882516fe57f4 ; affected 190888ac01d059e38ffe77a2291d44cafa9016fb < cdf1a683a01583bca4b618dd16223cbd6e462e21 ; affected 190888ac01d059e38ffe77a2291d44cafa9016fb < 5389101257828d1913d713d9a40acbe14f5961df ; affected 190888ac01d059e38ffe77a2291d44cafa9016fb < c059665c84feab46b7173d3a1bf36c2fb7f9df86 ; affected 190888ac01d059e38ffe77a2291d44cafa9016fb < 310862e574001a97ad02272bac0fd13f75f42a27 |
| Linux · Linux | affected 3.9 ; unaffected 0 < 3.9 ; unaffected 5.4.198 ≤ 5.4.* ; unaffected 5.10.122 ≤ 5.10.* ; unaffected 5.15.47 ≤ 5.15.* ; unaffected 5.17.15 ≤ 5.17.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |