CVE-2022-0487: Use After Free

Published Jan 24, 2022
·
Updated

A use-after-free vulnerability was found in rtsxusbmsdrvremove in drivers/memstick/host/rtsxusbms.c in memstick in the Linux kernel. In this flaw, a local attacker with a user privilege may impact system Confidentiality.

References:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=42933c8aa14be1caa9eda41f65cde8a3a95d3e39 https://lore.kernel.org/all/20220114075934.302464-1-gregkh@linuxfoundation.org/ https://bugzilla.suse.com/showbug.cgi?id=1194516

Other sources

A use-after-free vulnerability was found in rtsxusbmsdrvremove in drivers/memstick/host/rtsxusbms.c in memstick in the Linux kernel. In this flaw, a local attacker with a user privilege may impact system Confidentiality. This flaw affects kernel versions prior to 5.14 rc1.

— Launchpad

Affected Software

111 affected componentsFixes available
redhat/kernel<5.17
5.17
Linux Linux kernel<=5.13.19
redhat Enterprise Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=11.0
ubuntu/linux-aws<4.4.0-1117.123
4.4.0-1117.123
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-239.273~14.04.1
4.4.0-239.273~14.04.1
ubuntu/linux<4.4.0-239.273
4.4.0-239.273
ubuntu/linux-aws<4.4.0-1155.170
4.4.0-1155.170
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-1118.128
4.4.0-1118.128
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-1088.95
4.4.0-1088.95
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-1075.80~18.04.1
5.4.0-1075.80~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-1078.81~18.04.1
5.4.0-1078.81~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-1073.78~18.04.1
5.4.0-1073.78~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1071.76~18.04.3
5.4.0-1071.76~18.04.3
ubuntu/linux-gkeop-5.4<5.4.0-1040.41~18.04.1
5.4.0-1040.41~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-110.124~18.04.1
5.4.0-110.124~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1021.23~18.04.1
5.4.0-1021.23~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-1071.77~18.04.1
5.4.0-1071.77~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1060.68~18.04.1
5.4.0-1060.68~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-110.124
5.4.0-110.124
ubuntu/linux-aws<5.4.0-1073.78
5.4.0-1073.78
ubuntu/linux-aws-5.13<5.13.0-1023.25~20.04.1
5.13.0-1023.25~20.04.1
ubuntu/linux-azure<5.4.0-1078.81
5.4.0-1078.81
ubuntu/linux-azure-5.13<5.13.0-1023.27~20.04.1
5.13.0-1023.27~20.04.1
ubuntu/linux-bluefield<5.4.0-1040.44
5.4.0-1040.44
ubuntu/linux-gcp<5.4.0-1073.78
5.4.0-1073.78
ubuntu/linux-gcp-5.13<5.13.0-1025.30~20.04.1
5.13.0-1025.30~20.04.1
ubuntu/linux-gke<5.4.0-1071.76
5.4.0-1071.76
ubuntu/linux-gkeop<5.4.0-1040.41
5.4.0-1040.41
ubuntu/linux-hwe-5.13<5.13.0-41.46~20.04.1
5.13.0-41.46~20.04.1
ubuntu/linux-ibm<5.4.0-1021.23
5.4.0-1021.23
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-1063.66
5.4.0-1063.66
ubuntu/linux-oem-5.14<5.14.0-1027.30
5.14.0-1027.30
ubuntu/linux-oracle<5.4.0-1071.77
5.4.0-1071.77
ubuntu/linux-oracle-5.13<5.13.0-1028.33~20.04.1
5.13.0-1028.33~20.04.1
ubuntu/linux-raspi<5.4.0-1060.68
5.4.0-1060.68
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
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-1073.78+fips1
5.4.0-1073.78+fips1
ubuntu/linux-azure-fips<5.4.0-1078.81+fips1
5.4.0-1078.81+fips1
ubuntu/linux-fips<5.4.0-1049.55
5.4.0-1049.55
ubuntu/linux-gcp-fips<5.4.0-1073.78+fips1
5.4.0-1073.78+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.10-1
5.16.10-1
debian/linux<5.16.10-1
5.16.10-1
debian/linux<5.16.10-1
5.16.10-1
debian/linux
4.9.303-14.19.232-15.10.103-15.16.10-1
debian/linux-4.19
4.19.232-1~deb9u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.17
  2. Upgrade

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

    Fixed in 4.4.0-1117.123
  3. Upgrade

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

    Fixed in 4.15.0-1138.151~14.04.1
  4. Upgrade

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

    Fixed in 4.4.0-239.273~14.04.1
  5. Upgrade

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

    Fixed in 4.4.0-239.273
  6. Upgrade

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

    Fixed in 4.4.0-1155.170
  7. Upgrade

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

    Fixed in 4.15.0-1128.137~16.04.1
  8. Upgrade

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

    Fixed in 4.15.0-1138.151~16.04.1
  9. Upgrade

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

    Fixed in 4.15.0-1122.136~16.04.1
  10. Upgrade

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

    Fixed in 4.15.0-177.186~16.04.1
  11. Upgrade

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

    Fixed in 4.4.0-1118.128
  12. Upgrade

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

    Fixed in 4.15.0-1093.102~16.04.1
  13. Upgrade

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

    Fixed in 4.4.0-1088.95
  14. Upgrade

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

    Fixed in 4.15.0-177.186
  15. Upgrade

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

    Fixed in 4.15.0-1128.137
  16. Upgrade

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

    Fixed in 5.4.0-1075.80~18.04.1
  17. Upgrade

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

    Fixed in 4.15.0-1138.151
  18. Upgrade

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

    Fixed in 5.4.0-1078.81~18.04.1
  19. Upgrade

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

    Fixed in 4.15.0-1042.47
  20. Upgrade

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

    Fixed in 4.15.0-1122.136
  21. Upgrade

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

    Fixed in 5.4.0-1073.78~18.04.1
  22. Upgrade

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

    Fixed in 5.4.0-1071.76~18.04.3
  23. Upgrade

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

    Fixed in 5.4.0-1040.41~18.04.1
  24. Upgrade

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

    Fixed in 5.4.0-110.124~18.04.1
  25. Upgrade

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

    Fixed in 5.4.0-1021.23~18.04.1
  26. Upgrade

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

    Fixed in 4.15.0-1114.117
  27. Upgrade

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

    Fixed in 4.15.0-1093.102
  28. Upgrade

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

    Fixed in 5.4.0-1071.77~18.04.1
  29. Upgrade

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

    Fixed in 5.4.0-1060.68~18.04.1
  30. Upgrade

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

    Fixed in 4.15.0-1109.116
  31. Upgrade

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

    Fixed in 4.15.0-1127.136
  32. Upgrade

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

    Fixed in 4.15.0-2067.70
  33. Upgrade

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

    Fixed in 4.15.0-2049.53
  34. Upgrade

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

    Fixed in 4.15.0-1085.94
  35. Upgrade

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

    Fixed in 4.15.0-2032.35
  36. Upgrade

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

    Fixed in 5.4.0-110.124
  37. Upgrade

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

    Fixed in 5.4.0-1073.78
  38. Upgrade

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

    Fixed in 5.13.0-1023.25~20.04.1
  39. Upgrade

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

    Fixed in 5.4.0-1078.81
  40. Upgrade

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

    Fixed in 5.13.0-1023.27~20.04.1
  41. Upgrade

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

    Fixed in 5.4.0-1040.44
  42. Upgrade

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

    Fixed in 5.4.0-1073.78
  43. Upgrade

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

    Fixed in 5.13.0-1025.30~20.04.1
  44. Upgrade

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

    Fixed in 5.4.0-1071.76
  45. Upgrade

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

    Fixed in 5.4.0-1040.41
  46. Upgrade

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

    Fixed in 5.13.0-41.46~20.04.1
  47. Upgrade

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

    Fixed in 5.4.0-1021.23
  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-1063.66
  51. Upgrade

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

    Fixed in 5.14.0-1027.30
  52. Upgrade

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

    Fixed in 5.4.0-1071.77
  53. Upgrade

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

    Fixed in 5.13.0-1028.33~20.04.1
  54. Upgrade

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

    Fixed in 5.4.0-1060.68
  55. Upgrade

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

    Fixed in 5.4.0-1073.78+fips1
  56. Upgrade

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

    Fixed in 5.4.0-1078.81+fips1
  57. Upgrade

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

    Fixed in 5.4.0-1049.55
  58. Upgrade

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

    Fixed in 5.4.0-1073.78+fips1
  59. Upgrade

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

    Fixed in 5.16.10-1
  60. Upgrade

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

    Fixed in 4.9.303-1Fixed in 4.19.232-1Fixed in 5.10.103-1Fixed in 5.16.10-1
  61. Upgrade

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

    Fixed in 4.19.232-1~deb9u1
  62. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.14 rc1

Event History

Jan 24, 2022
Data Sourced
06:33 PM
DescriptionSeverityAffected Software
Feb 4, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
CVE Published
via MITRE·10:29 PM
Data Sourced
via MITRE·10:29 PM
DescriptionWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software
Apr 30, 2022
Data Sourced
02:40 AM
Weakness
Data Sourced
via NVD·02:40 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
02:40 AM
Affected Software
Sep 26, 2023
Data Sourced
via Red Hat·06:41 PM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·06:38 AM
RemedyAffected Software
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-0487?

CVE-2022-0487 is classified as having a medium severity level due to its potential impact on system confidentiality.

2

How do I fix CVE-2022-0487?

To address CVE-2022-0487, users should upgrade to the latest kernel versions specified in the vulnerability advisory.

3

Which Linux kernel versions are affected by CVE-2022-0487?

CVE-2022-0487 affects multiple versions of the Linux kernel, specifically those prior to 5.17 and several versions within the 5.x and 6.x series.

4

Can a local attacker exploit CVE-2022-0487?

Yes, a local attacker with user privileges can exploit CVE-2022-0487 to potentially impact system confidentiality.

5

Is CVE-2022-0487 fixed in newer kernel updates?

Yes, CVE-2022-0487 has been addressed in subsequent kernel updates, which include necessary patches to mitigate the vulnerability.

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