CVE-2022-49385 json
driver: base: fix UAF when driver_attach failed
published 2025-02-26 20 mo ago modified 2026-08-05 3 mo ago also EUVD-2022-54844
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 22%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.198, 5.10.122, 5.15.47, 5.17.15, 5.18.4, 5.19
- linux Debian 14, Debian 13, Debian 12 5.18.5-1
debian advisories DEBIAN-CVE-2022-49385
- linux Ubuntu 20.04 LTS 5.4.0-126.142
- linux Ubuntu 22.04 LTS 5.15.0-48.54
- linux-aws Ubuntu 20.04 LTS 5.4.0-1085.92
- linux-aws Ubuntu 22.04 LTS 5.15.0-1020.24
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1089.97
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1018.24
- linux-gke Ubuntu 22.04 LTS 5.15.0-1016.19
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1033.37
ubuntu advisories UBUNTU-CVE-2022-49385
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-kvm RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-core RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-modules RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-debug-kvm RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-debug-core RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-debug-modules RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
- kernel-rt-modules-extra RHEL 9.0 E4S 5.14.0-70.144.1.rt21.216.el9_0
red hat advisories RHSA-2025:14749RHSA-2025:14744
- kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.201.1
- kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-default SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +5 more 5.3.18-150300.59.201.1
- kernel-preempt SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-obs-build SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
- kernel-default-base SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 5.3.18-150300.59.201.1.150300.18.120.1
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.100.1
suse advisories SUSE-SU-2025:01600-1SUSE-SU-2025:1263-1SUSE-SU-2025:1241-1SUSE-SU-2025:1194-1SUSE-SU-2025:1183-1SUSE-SU-2025:1176-1
- git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b commit
- git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4 commit
- git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21 commit
- git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961df commit
- git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86 commit
- git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-49385 updated cvss 6.0
kernel: driver: base: fix UAF when driver_attach failed
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) perf 5.14.0-70.144.1.el9_0, kernel-devel-matched 5.14.0-70.144.1.el9_0, kernel-debug-devel-matched 5.14.0-70.144.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.144.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.144.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.144.1.el9_0, +2 more Red Hat Enterprise Linux BaseOS E4S (v.9.0) kernel 5.14.0-70.144.1.el9_0, bpftool 5.14.0-70.144.1.el9_0, kernel-core 5.14.0-70.144.1.el9_0, kernel-tools 5.14.0-70.144.1.el9_0, python3-perf 5.14.0-70.144.1.el9_0, kernel-modules 5.14.0-70.144.1.el9_0, +14 morefixed: vendor fix RHSA-2025:14744
-
Red Hat Enterprise Linux NFV E4S (v.9.0) kernel-rt 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-kvm 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-core 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-modules 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-debug-kvm 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-debug-core 5.14.0-70.144.1.rt21.216.el9_0, +4 more Red Hat Enterprise Linux Real Time E4S (v.9.0) kernel-rt 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-core 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-modules 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-debug-core 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-debug-modules 5.14.0-70.144.1.rt21.216.el9_0, kernel-rt-modules-extra 5.14.0-70.144.1.rt21.216.el9_0, +2 morefixed: vendor fix RHSA-2025:14749
-
Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
0.30% chance of exploitation in the next 30 days, higher than 22% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA ADP | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b
patch
-
git.kernel.org
/stable/c/823f24f2e329babd0330200d0b74882516fe57f4
patch
-
git.kernel.org
/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21
patch
-
git.kernel.org
/stable/c/5389101257828d1913d713d9a40acbe14f5961df
patch
-
git.kernel.org
/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86
patch
-
git.kernel.org
/stable/c/310862e574001a97ad02272bac0fd13f75f42a27
patch
Sources
- CVE List CVE-2022-49385
- NVD CVE-2022-49385
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.