CVE-2022-0494: Infoleak

Published Jan 11, 2022
·
Updated

A flaw was found in the linux kernel in scsiioctl() function. If the parameter cmd is SCSIIOCTLSENDCOMMAND, the function scsiioctl will call sgscsiioctl to further process. In function sgscsiioctl, it creates a scsi request and calls blkrqmapkern to allocate the internal buffer of this request, but the internal buffer doesn't get zeroed properly. Then this request will be sent to the disk driver, but the disk driver doesn't fill anything into it. Finally, the internal buffer's content is copied to the user buffer which is specified by the parameter sic->data of sgscsiioctl.

Reference: https://lore.kernel.org/all/20220216084038.15635-1-tcs.kernel@gmail.com/

Other sources

A kernel information leak flaw was identified in the scsiioctl function in drivers/scsi/scsiioctl.c in the Linux kernel. This flaw allows a local attacker with a special user privilege (CAPSYSADMIN or CAPSYSRAWIO) to create issues with confidentiality.

Affected Software

121 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.32.1.rt7.189.el8_6
0:4.18.0-372.32.1.rt7.189.el8_6
redhat/kernel<0:4.18.0-372.32.1.el8_6
0:4.18.0-372.32.1.el8_6
redhat/kernel-rt<0:4.18.0-305.62.1.rt7.134.el8_4
0:4.18.0-305.62.1.rt7.134.el8_4
redhat/kernel<0:4.18.0-305.62.1.el8_4
0:4.18.0-305.62.1.el8_4
redhat/kernel<0:5.14.0-70.22.1.el9_0
0:5.14.0-70.22.1.el9_0
redhat/kernel-rt<0:5.14.0-70.22.1.rt21.94.el9_0
0:5.14.0-70.22.1.rt21.94.el9_0
Linux Linux kernel<5.17
Linux Linux kernel=5.17
Linux Linux kernel=5.17-rc1
Linux Linux kernel=5.17-rc2
Linux Linux kernel=5.17-rc3
Linux Linux kernel=5.17-rc4
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
redhat/kernel<5.17
5.17
ubuntu/linux-aws<4.4.0-1117.123
4.4.0-1117.123
ubuntu/linux-azure<4.15.0-1149.164~14.04.1
4.15.0-1149.164~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-1139.150~16.04.1
4.15.0-1139.150~16.04.1
ubuntu/linux-azure<4.15.0-1149.164~16.04.1
4.15.0-1149.164~16.04.1
ubuntu/linux-gcp<4.15.0-1134.150~16.04.2
4.15.0-1134.150~16.04.2
ubuntu/linux-hwe<4.15.0-191.202~16.04.1
4.15.0-191.202~16.04.1
ubuntu/linux-kvm<4.4.0-1118.128
4.4.0-1118.128
ubuntu/linux-oracle<4.15.0-1104.115~16.04.1
4.15.0-1104.115~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-191.202
4.15.0-191.202
ubuntu/linux-aws<4.15.0-1139.150
4.15.0-1139.150
ubuntu/linux-aws-5.4<5.4.0-1083.90~18.04.1
5.4.0-1083.90~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1149.164
4.15.0-1149.164
ubuntu/linux-azure-5.4<5.4.0-1089.94~18.04.1
5.4.0-1089.94~18.04.1
ubuntu/linux-dell300x<4.15.0-1051.56
4.15.0-1051.56
ubuntu/linux-gcp-4.15<4.15.0-1134.150
4.15.0-1134.150
ubuntu/linux-gcp-5.4<5.4.0-1086.94~18.04.1
5.4.0-1086.94~18.04.1
ubuntu/linux-gke-5.4<5.4.0-1080.86~18.04.1
5.4.0-1080.86~18.04.1
ubuntu/linux-gkeop-5.4<5.4.0-1051.54~18.04.1
5.4.0-1051.54~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-124.140~18.04.1
5.4.0-124.140~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1031.35~18.04.1
5.4.0-1031.35~18.04.1
ubuntu/linux-kvm<4.15.0-1125.130
4.15.0-1125.130
ubuntu/linux-oracle<4.15.0-1104.115
4.15.0-1104.115
ubuntu/linux-oracle-5.4<5.4.0-1081.89~18.04.1
5.4.0-1081.89~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1068.78~18.04.1
5.4.0-1068.78~18.04.1
ubuntu/linux-raspi2<4.15.0-1117.125
4.15.0-1117.125
ubuntu/linux-snapdragon<4.15.0-1135.145
4.15.0-1135.145
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-2078.83
4.15.0-2078.83
ubuntu/linux-azure-fips<4.15.0-2059.65
4.15.0-2059.65
ubuntu/linux-fips<4.15.0-1096.107
4.15.0-1096.107
ubuntu/linux-gcp-fips<4.15.0-2043.48
4.15.0-2043.48
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-124.140
5.4.0-124.140
ubuntu/linux-aws<5.4.0-1083.90
5.4.0-1083.90
ubuntu/linux-azure<5.4.0-1089.94
5.4.0-1089.94
ubuntu/linux-bluefield<5.4.0-1044.49
5.4.0-1044.49
ubuntu/linux-gcp<5.4.0-1086.94
5.4.0-1086.94
ubuntu/linux-gke<5.4.0-1080.86
5.4.0-1080.86
ubuntu/linux-gkeop<5.4.0-1051.54
5.4.0-1051.54
ubuntu/linux-ibm<5.4.0-1031.35
5.4.0-1031.35
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-1073.78
5.4.0-1073.78
ubuntu/linux-oem-5.14<5.14.0-1033.36
5.14.0-1033.36
ubuntu/linux-oracle<5.4.0-1081.89
5.4.0-1081.89
ubuntu/linux-raspi<5.4.0-1068.78
5.4.0-1068.78
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
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.13*
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-1083.90+fips1
5.4.0-1083.90+fips1
ubuntu/linux-azure-fips<5.4.0-1089.94+fips1
5.4.0-1089.94+fips1
ubuntu/linux-fips<5.4.0-1059.67
5.4.0-1059.67
ubuntu/linux-gcp-fips<5.4.0-1086.94+fips1
5.4.0-1086.94+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
debian/linux
6.1.176-16.1.192-26.12.107-16.12.117-17.3.4-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:4.18.0-372.32.1.rt7.189.el8_6
  2. Upgrade

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

    Fixed in 0:4.18.0-372.32.1.el8_6
  3. Upgrade

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

    Fixed in 0:4.18.0-305.62.1.rt7.134.el8_4
  4. Upgrade

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

    Fixed in 0:4.18.0-305.62.1.el8_4
  5. Upgrade

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

    Fixed in 0:5.14.0-70.22.1.el9_0
  6. Upgrade

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

    Fixed in 0:5.14.0-70.22.1.rt21.94.el9_0
  7. Upgrade

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

    Fixed in 5.17
  8. Upgrade

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

    Fixed in 4.4.0-1117.123
  9. Upgrade

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

    Fixed in 4.15.0-1149.164~14.04.1
  10. Upgrade

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

    Fixed in 4.4.0-239.273~14.04.1
  11. Upgrade

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

    Fixed in 4.4.0-239.273
  12. Upgrade

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

    Fixed in 4.4.0-1155.170
  13. Upgrade

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

    Fixed in 4.15.0-1139.150~16.04.1
  14. Upgrade

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

    Fixed in 4.15.0-1149.164~16.04.1
  15. Upgrade

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

    Fixed in 4.15.0-1134.150~16.04.2
  16. Upgrade

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

    Fixed in 4.15.0-191.202~16.04.1
  17. Upgrade

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

    Fixed in 4.4.0-1118.128
  18. Upgrade

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

    Fixed in 4.15.0-1104.115~16.04.1
  19. Upgrade

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

    Fixed in 4.4.0-1088.95
  20. Upgrade

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

    Fixed in 4.15.0-191.202
  21. Upgrade

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

    Fixed in 4.15.0-1139.150
  22. Upgrade

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

    Fixed in 5.4.0-1083.90~18.04.1
  23. Upgrade

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

    Fixed in 4.15.0-1149.164
  24. Upgrade

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

    Fixed in 5.4.0-1089.94~18.04.1
  25. Upgrade

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

    Fixed in 4.15.0-1051.56
  26. Upgrade

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

    Fixed in 4.15.0-1134.150
  27. Upgrade

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

    Fixed in 5.4.0-1086.94~18.04.1
  28. Upgrade

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

    Fixed in 5.4.0-1080.86~18.04.1
  29. Upgrade

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

    Fixed in 5.4.0-1051.54~18.04.1
  30. Upgrade

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

    Fixed in 5.4.0-124.140~18.04.1
  31. Upgrade

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

    Fixed in 5.4.0-1031.35~18.04.1
  32. Upgrade

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

    Fixed in 4.15.0-1125.130
  33. Upgrade

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

    Fixed in 4.15.0-1104.115
  34. Upgrade

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

    Fixed in 5.4.0-1081.89~18.04.1
  35. Upgrade

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

    Fixed in 5.4.0-1068.78~18.04.1
  36. Upgrade

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

    Fixed in 4.15.0-1117.125
  37. Upgrade

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

    Fixed in 4.15.0-1135.145
  38. Upgrade

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

    Fixed in 4.15.0-2078.83
  39. Upgrade

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

    Fixed in 4.15.0-2059.65
  40. Upgrade

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

    Fixed in 4.15.0-1096.107
  41. Upgrade

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

    Fixed in 4.15.0-2043.48
  42. Upgrade

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

    Fixed in 5.4.0-124.140
  43. Upgrade

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

    Fixed in 5.4.0-1083.90
  44. Upgrade

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

    Fixed in 5.4.0-1089.94
  45. Upgrade

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

    Fixed in 5.4.0-1044.49
  46. Upgrade

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

    Fixed in 5.4.0-1086.94
  47. Upgrade

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

    Fixed in 5.4.0-1080.86
  48. Upgrade

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

    Fixed in 5.4.0-1051.54
  49. Upgrade

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

    Fixed in 5.4.0-1031.35
  50. 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
  51. Upgrade

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

    Fixed in 5.4.0-1004.6
  52. Upgrade

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

    Fixed in 5.4.0-1073.78
  53. Upgrade

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

    Fixed in 5.14.0-1033.36
  54. Upgrade

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

    Fixed in 5.4.0-1081.89
  55. Upgrade

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

    Fixed in 5.4.0-1068.78
  56. Upgrade

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

    Fixed in 5.4.0-1083.90+fips1
  57. Upgrade

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

    Fixed in 5.4.0-1089.94+fips1
  58. Upgrade

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

    Fixed in 5.4.0-1059.67
  59. Upgrade

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

    Fixed in 5.4.0-1086.94+fips1
  60. Upgrade

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

    Fixed in 5.16.14-1
  61. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1

Event History

Jan 11, 2022
Data Sourced
via Red Hat·05:59 PM
DescriptionSeverityAffected Software
Feb 16, 2022
CVE Published
05:00 PM
Mar 25, 2022
CVE Published
via MITRE·06:03 PM
Data Sourced
via MITRE·06:03 PM
DescriptionWeakness
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected 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-0494?

The severity of CVE-2022-0494 is classified as high due to its potential to lead to privilege escalation.

2

How do I fix CVE-2022-0494?

To fix CVE-2022-0494, update your kernel to one of the following versions: 0:4.18.0-372.32.1.rt7.189.el8_6, 0:4.18.0-372.32.1.el8_6, 0:5.14.0-70.22.1.el9_0, or any version above 5.17.

3

What systems are affected by CVE-2022-0494?

CVE-2022-0494 affects Linux kernel versions up to 5.17 and specific Red Hat and Debian kernel packages.

4

Can CVE-2022-0494 lead to remote code execution?

CVE-2022-0494 does not directly lead to remote code execution but may allow privilege escalation, which can be exploited in conjunction with other vulnerabilities.

5

Is there a workaround for CVE-2022-0494?

There are no specific workarounds for CVE-2022-0494; the best mitigation is to apply the recommended updates to affected kernel versions.

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