CVE-2022-49385
published 2025-02-26CVE-2022-49385: In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, the…
PriorityP335high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.30%
22.0th percentile
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.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.18.5-1 (bookworm) | linux 5.18.5-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 190888ac01d059e38ffe77a2291d44cafa9016fb < 5d709f58c743166fe1c6914b9de0ae8868600d9b | 5d709f58c743166fe1c6914b9de0ae8868600d9b |
| linux | linux | >= 190888ac01d059e38ffe77a2291d44cafa9016fb < 823f24f2e329babd0330200d0b74882516fe57f4 | 823f24f2e329babd0330200d0b74882516fe57f4 |
| linux | linux | >= 190888ac01d059e38ffe77a2291d44cafa9016fb < cdf1a683a01583bca4b618dd16223cbd6e462e21 | cdf1a683a01583bca4b618dd16223cbd6e462e21 |
| linux | linux | >= 190888ac01d059e38ffe77a2291d44cafa9016fb < 5389101257828d1913d713d9a40acbe14f5961df | 5389101257828d1913d713d9a40acbe14f5961df |
| linux | linux | >= 190888ac01d059e38ffe77a2291d44cafa9016fb < c059665c84feab46b7173d3a1bf36c2fb7f9df86 | c059665c84feab46b7173d3a1bf36c2fb7f9df86 |
| linux | linux | >= 190888ac01d059e38ffe77a2291d44cafa9016fb < 310862e574001a97ad02272bac0fd13f75f42a27 | 310862e574001a97ad02272bac0fd13f75f42a27 |
| linux | linux_kernel | >= 0 < 5.10.127-1 | 5.10.127-1 |
| linux | linux_kernel | >= 0 < 5.18.5-1 | 5.18.5-1 |
| linux | linux_kernel | >= 0 < 5.18.5-1 | 5.18.5-1 |
| linux | linux_kernel | >= 0 < 5.18.5-1 | 5.18.5-1 |
| linux | linux_kernel | >= 3.9 < 5.4.198 | 5.4.198 |
| linux | linux_kernel | >= 5.11 < 5.15.47 | 5.15.47 |
| linux | linux_kernel | >= 5.16 < 5.17.15 | 5.17.15 |
| linux | linux_kernel | >= 5.18 < 5.18.4 | 5.18.4 |
| linux | linux_kernel | >= 5.5 < 5.10.122 | 5.10.122 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-5mhv-g6m4-pmp4: In the Linux kernel, the following vulnerability has been resolved:
driver: base: fix UAF when driver_attach failed
When driver_attach(drv); failed,
ghsa_unreviewed·2025-02-27
CVE-2022-49385 [HIGH] CWE-416 GHSA-5mhv-g6m4-pmp4: In the Linux kernel, the following vulnerability has been resolved:
driver: base: fix UAF when driver_attach failed
When driver_attach(drv); failed,
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.
OSV
CVE-2022-49385: In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, t
osv·2025-02-26·CVSS 7.8
CVE-2022-49385 [HIGH] CVE-2022-49385: In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, t
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.
Red Hat
kernel: driver: base: fix UAF when driver_attach failed
vendor_redhat·2025-02-26·CVSS 7.8
CVE-2022-49385 [HIGH] CWE-416 kernel: driver: base: fix UAF when driver_attach failed
kernel: driver: base: fix UAF when driver_attach failed
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.
A flaw was discovered in the Linux kernel’s device driver core. When driver_attach(drv) fails, the associated driver_private structure is freed—but the driver remains registered on the bus. This leads to a use-after-free condition when the kernel subsequently references the freed driver_private. A local, authenticated user with low privileges can trigger this flaw to cause memory corruption, system instability, or denial of service.
Package:
Debian
CVE-2022-49385: linux - In the Linux kernel, the following vulnerability has been resolved: driver: bas...
vendor_debian·2022·CVSS 7.8
CVE-2022-49385 [HIGH] CVE-2022-49385: linux - In the Linux kernel, the following vulnerability has been resolved: driver: bas...
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.
Scope: local
bookworm: resolved (fixed in 5.18.5-1)
bullseye: resolved (fixed in 5.10.127-1)
forky: resolved (fixed in 5.18.5-1)
sid: resolved (fixed in 5.18.5-1)
trixie: resolved (fixed in 5.18.5-1)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27https://git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961dfhttps://git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9bhttps://git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4https://git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86https://git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21
2025-02-26
Published