Back to CVE catalog
CVE-2022-49385

driver: base: fix UAF when driver_attach failed

Linux Linux

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.1

7.8High
Published:
Updated:
EPSS:
0.309%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:LinuxLinuxAffected versions:
3.9Show full version range for Linux
  • Other versions are affected by default; consult the source for exceptions.
  • Other source statuses: unaffected: < 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.*; unaffected: ≥ 5.18.4, ≤ 5.18.*; unaffected: ≥ 5.19

Git commit ranges (source code)

  • From commit 190888ac01d059e38ffe77a2291d44cafa9016fb; before commit 5d709f58c743166fe1c6914b9de0ae8868600d9b
  • From commit 190888ac01d059e38ffe77a2291d44cafa9016fb; before commit 823f24f2e329babd0330200d0b74882516fe57f4
  • From commit 190888ac01d059e38ffe77a2291d44cafa9016fb; before commit cdf1a683a01583bca4b618dd16223cbd6e462e21
  • From commit 190888ac01d059e38ffe77a2291d44cafa9016fb; before commit 5389101257828d1913d713d9a40acbe14f5961df
  • From commit 190888ac01d059e38ffe77a2291d44cafa9016fb; before commit c059665c84feab46b7173d3a1bf36c2fb7f9df86
  • From commit 190888ac01d059e38ffe77a2291d44cafa9016fb; before commit 310862e574001a97ad02272bac0fd13f75f42a27
Vendor:Red HatRed Hat Enterprise Linux 6Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 7Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 8Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux 9Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux AppStream E4S (v.9.0)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux BaseOS E4S (v.9.0)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux NFV E4S (v.9.0)Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Enterprise Linux Real Time E4S (v.9.0)Affected versions:Source does not specify a version range
Vendor:SUSESLES-LTSS-TERADATA 15 SP2Affected versions:Source does not specify a version range

1–10 of 41 · Page 1 of 5

CVSS scores and metrics6
Linux · CVE List / CNA (cna)Primary7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP · CVE List / CNA (adp)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE-2022-49385 · OSV (source-vector)7.8 / 10HighCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat · Red Hat VEX (adp)6.0 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
None
Availability
High
Attack vector
Local
Privileges required
High
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H
SUSE · SUSE VEX (adp)5.5 / 10MediumCVSS 3.1Details
Attack complexity
Low
Confidentiality
None
Integrity
None
Availability
High
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories14

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences