CVE-2022-24958: Use After Free

Published Feb 11, 2022
·
Updated

drivers/usb/gadget/legacy/inode.c in the Linux kernel through 5.16.8 mishandles dev->buf release.

Other sources

In devconfig of inode.c, there is a possible arbitrary code execution due to a use after free. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

— OSV

Affected Software

152 affected componentsFixes available
Linux Linux kernel<5.16.8
Fedoraproject Fedora=34
Fedoraproject Fedora=35
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
Debian Debian Linux=9.0
Linux Linux kernel<4.9.305
Linux Linux kernel>=4.10<4.14.270
Linux Linux kernel>=4.15<4.19.233
Linux Linux kernel>=4.20<5.4.183
Linux Linux kernel>=5.5<5.10.104
Linux Linux kernel>=5.11<5.15.27
Linux Linux kernel>=5.16<5.16.13
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
Google Android
ubuntu/linux-aws<4.4.0-1109.115
4.4.0-1109.115
ubuntu/linux-azure<4.15.0-1138.151~14.04.1
4.15.0-1138.151~14.04.1
ubuntu/linux-lts-xenial<4.4.0-229.263~14.04.1
4.4.0-229.263~14.04.1
ubuntu/linux*
ubuntu/linux<4.4.0-229.263
4.4.0-229.263
ubuntu/linux-aws<4.4.0-1145.160
4.4.0-1145.160
ubuntu/linux-aws-hwe<4.15.0-1128.137~16.04.1
4.15.0-1128.137~16.04.1
ubuntu/linux-azure<4.15.0-1138.151~16.04.1
4.15.0-1138.151~16.04.1
ubuntu/linux-gcp<4.15.0-1122.136~16.04.1
4.15.0-1122.136~16.04.1
ubuntu/linux-hwe<4.15.0-177.186~16.04.1
4.15.0-177.186~16.04.1
ubuntu/linux-kvm<4.4.0-1110.120
4.4.0-1110.120
ubuntu/linux-oracle<4.15.0-1093.102~16.04.1
4.15.0-1093.102~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1079.86
4.4.0-1079.86
ubuntu/linux-fips*
ubuntu/linux<4.15.0-177.186
4.15.0-177.186
ubuntu/linux-aws<4.15.0-1128.137
4.15.0-1128.137
ubuntu/linux-aws-5.4<5.4.0-1078.84~18.04.1
5.4.0-1078.84~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1138.151
4.15.0-1138.151
ubuntu/linux-azure-5.4<5.4.0-1083.87~18.04.1
5.4.0-1083.87~18.04.1
ubuntu/linux-dell300x<4.15.0-1042.47
4.15.0-1042.47
ubuntu/linux-gcp-4.15<4.15.0-1122.136
4.15.0-1122.136
ubuntu/linux-gcp-5.4<5.4.0-1078.84~18.04.1
5.4.0-1078.84~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1074.79~18.04.1
5.4.0-1074.79~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1046.48~18.04.1
5.4.0-1046.48~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-117.132~18.04.1
5.4.0-117.132~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1028.32~18.04.1
5.4.0-1028.32~18.04.1
ubuntu/linux-kvm<4.15.0-1114.117
4.15.0-1114.117
ubuntu/linux-oracle<4.15.0-1093.102
4.15.0-1093.102
ubuntu/linux-oracle-5.4<5.4.0-1076.83~18.04.1
5.4.0-1076.83~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1065.75~18.04.1
5.4.0-1065.75~18.04.1
ubuntu/linux-raspi2<4.15.0-1109.116
4.15.0-1109.116
ubuntu/linux-snapdragon<4.15.0-1127.136
4.15.0-1127.136
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2067.70
4.15.0-2067.70
ubuntu/linux-azure-fips<4.15.0-2049.53
4.15.0-2049.53
ubuntu/linux-fips<4.15.0-1085.94
4.15.0-1085.94
ubuntu/linux-gcp-fips<4.15.0-2032.35
4.15.0-2032.35
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-117.132
5.4.0-117.132
ubuntu/linux-aws<5.4.0-1078.84
5.4.0-1078.84
ubuntu/linux-aws-5.13<5.13.0-1028.31~20.04.1
5.13.0-1028.31~20.04.1
ubuntu/linux-azure<5.4.0-1083.87
5.4.0-1083.87
ubuntu/linux-azure-5.13<5.13.0-1028.33~20.04.1
5.13.0-1028.33~20.04.1
ubuntu/linux-bluefield<5.4.0-1040.44
5.4.0-1040.44
ubuntu/linux-gcp<5.4.0-1078.84
5.4.0-1078.84
ubuntu/linux-gcp-5.13<5.13.0-1030.36~20.04.1
5.13.0-1030.36~20.04.1
ubuntu/linux-gke<5.4.0-1074.79
5.4.0-1074.79
ubuntu/linux-gkeop<5.4.0-1046.48
5.4.0-1046.48
ubuntu/linux-hwe-5.13<5.13.0-48.54~20.04.1
5.13.0-48.54~20.04.1
ubuntu/linux-ibm<5.4.0-1026.29
5.4.0-1026.29
ubuntu/linux-intel-5.13<5.13.0-1014.15
5.13.0-1014.15
ubuntu/linux-intel-iotg-5.15<5.15.0-1008.11~20.04.1
5.15.0-1008.11~20.04.1
ubuntu/linux-iot<5.4.0-1004.6
5.4.0-1004.6
ubuntu/linux-kvm<5.4.0-1068.72
5.4.0-1068.72
ubuntu/linux-oem-5.14<5.14.0-1033.36
5.14.0-1033.36
ubuntu/linux-oracle<5.4.0-1076.83
5.4.0-1076.83
ubuntu/linux-oracle-5.13<5.13.0-1033.39~20.04.1
5.13.0-1033.39~20.04.1
ubuntu/linux-raspi<5.4.0-1065.75
5.4.0-1065.75
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde-5.15<5.15.0-1114.123~20.04.1
5.15.0-1114.123~20.04.1
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.8*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1078.84+fips1
5.4.0-1078.84+fips1
ubuntu/linux-azure-fips<5.4.0-1083.87+fips1
5.4.0-1083.87+fips1
ubuntu/linux-fips<5.4.0-1054.61
5.4.0-1054.61
ubuntu/linux-gcp-fips<5.4.0-1078.84+fips1
5.4.0-1078.84+fips1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-realtime*
ubuntu/linux-raspi-realtime*
debian/linux<5.16.14-1
5.16.14-1
debian/linux<5.16.14-1
5.16.14-1
debian/linux<5.16.14-1
5.16.14-1
android/:linux_kernel:>=:0<:2022-06-05
:2022-06-05
debian/linux
4.9.320-24.19.235-15.10.106-15.16.14-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1109.115
  2. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1138.151~14.04.1
  3. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-229.263~14.04.1
  4. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.4.0-229.263
  5. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1145.160
  6. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1128.137~16.04.1
  7. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1138.151~16.04.1
  8. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1122.136~16.04.1
  9. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-177.186~16.04.1
  10. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1110.120
  11. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1093.102~16.04.1
  12. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1079.86
  13. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-177.186
  14. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1128.137
  15. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1078.84~18.04.1
  16. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1138.151
  17. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1083.87~18.04.1
  18. Upgrade

    Upgrade ubuntu/linux-dell300x to a version that resolves this vulnerability.

    Fixed in 4.15.0-1042.47
  19. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1122.136
  20. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1078.84~18.04.1
  21. Upgrade

    Upgrade ubuntu/linux-gke-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1074.79~18.04.1
  22. Upgrade

    Upgrade ubuntu/linux-gkeop-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1046.48~18.04.1
  23. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-117.132~18.04.1
  24. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1028.32~18.04.1
  25. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1114.117
  26. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1093.102
  27. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1076.83~18.04.1
  28. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.75~18.04.1
  29. Upgrade

    Upgrade ubuntu/linux-raspi2 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1109.116
  30. Upgrade

    Upgrade ubuntu/linux-snapdragon to a version that resolves this vulnerability.

    Fixed in 4.15.0-1127.136
  31. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2067.70
  32. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2049.53
  33. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1085.94
  34. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2032.35
  35. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-117.132
  36. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1078.84
  37. Upgrade

    Upgrade ubuntu/linux-aws-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1028.31~20.04.1
  38. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1083.87
  39. Upgrade

    Upgrade ubuntu/linux-azure-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1028.33~20.04.1
  40. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1040.44
  41. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1078.84
  42. Upgrade

    Upgrade ubuntu/linux-gcp-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1030.36~20.04.1
  43. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.4.0-1074.79
  44. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.4.0-1046.48
  45. Upgrade

    Upgrade ubuntu/linux-hwe-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-48.54~20.04.1
  46. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1026.29
  47. Upgrade

    Upgrade ubuntu/linux-intel-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1014.15
  48. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1008.11~20.04.1
  49. Upgrade

    Upgrade ubuntu/linux-iot to a version that resolves this vulnerability.

    Fixed in 5.4.0-1004.6
  50. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1068.72
  51. Upgrade

    Upgrade ubuntu/linux-oem-5.14 to a version that resolves this vulnerability.

    Fixed in 5.14.0-1033.36
  52. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1076.83
  53. Upgrade

    Upgrade ubuntu/linux-oracle-5.13 to a version that resolves this vulnerability.

    Fixed in 5.13.0-1033.39~20.04.1
  54. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1065.75
  55. Upgrade

    Upgrade ubuntu/linux-azure-fde-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1114.123~20.04.1
  56. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1078.84+fips1
  57. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1083.87+fips1
  58. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1054.61
  59. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1078.84+fips1
  60. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.16.14-1
  61. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2022-06-05
  62. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 4.9.320-2Fixed in 4.19.235-1Fixed in 5.10.106-1Fixed in 5.16.14-1

Event History

Feb 11, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·04:21 AM
Data Sourced
via MITRE·04:21 AM
Description
Jun 1, 2022
Advisory Published
via OSV·12:00 AM
Sep 9, 2022
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software
Feb 1, 2023
Data Sourced
03:50 PM
Weakness
Nov 7, 2023
Data Sourced
via NVD·03:44 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:44 AM
Affected Software
Feb 7, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 11, 2024
Updated
via Android·12:00 AM
Affected Software
Mar 18, 2024
Updated
via Android·12:00 AM
Affected Software
Apr 29, 2024
Updated
via Android·12:00 AM
Affected Software
Aug 26, 2024
Updated
via Android·12:00 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:51 AM
RemedyAffected Software
Sep 11, 2026
Updated
via NVD·04:17 PM
Affected Software
Sep 30, 2026
Updated
via Android·12:00 AM
Affected Software
Nov 6, 2026
Data Sourced
via OSV·01:49 PM
SeverityAffected Software
Nov 11, 2026
Updated
via OSV·09:37 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-24958?

CVE-2022-24958 is classified as a medium severity vulnerability.

2

How do I fix CVE-2022-24958?

To fix CVE-2022-24958, ensure that your Linux kernel is updated to versions later than 5.16.8.

3

Which systems are affected by CVE-2022-24958?

CVE-2022-24958 affects versions of the Linux kernel up to and including 5.16.8, as well as certain versions of Google Android and Fedora.

4

What kind of vulnerability is CVE-2022-24958?

CVE-2022-24958 is a memory management vulnerability in the Linux kernel related to mishandling device buffer releases.

5

What are the potential impacts of CVE-2022-24958?

The potential impacts of CVE-2022-24958 include denial of service conditions or potential system instability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203