CVE-2021-28972
Vulnerability Summary
Timeline
Description
In drivers/pci/hotplug/rpadlpar_sysfs.c in the Linux kernel through 5.11.8, the RPA PCI Hotplug driver has a user-tolerable buffer overflow when writing a new device name to the driver from userspace, allowing userspace to write data to the kernel stack frame directly. This occurs because add_slot_store and remove_slot_store mishandle drc_name '\0' termination, aka CID-cc7a0bb058b8.
CVSS Metrics
- v3.1•MEDIUM•Score: 6.7CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- v2.0•HIGH•Score: 7.2AV:L/AC:L/Au:N/C:C/I:C/A:C
EPSS Trends
Current EPSS score: 0.80%• Percentile: 55%
Techniques & Countermeasures
- CWE-120•Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
Affected Systems
- debian•linux
< 5.10.26-1 | < 5.10.26-1 | < 5.10.26-1 | < 5.10.26-1
- ubuntu•linux
all | < 4.4.0-219.252 | < 4.15.0-144.148 | < 5.4.0-74.83
- ubuntu•linux-aws
< 4.4.0-1099.104 | < 4.4.0-1135.149 | < 4.15.0-1103.110 | < 5.4.0-1049.51
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1049.51~18.04.1
- ubuntu•linux-aws-fips
< 4.15.0-2045.47 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1103.110~16.04.1
- ubuntu•linux-azure
< 4.15.0-1115.128~14.04.1 | < 4.15.0-1115.128~16.04.1 | all | < 5.4.0-1048.50
- ubuntu•linux-azure-4.15
< 4.15.0-1115.128
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1048.50~18.04.1
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde-5.15
< 5.15.0-1114.123~20.04.1
- ubuntu•linux-azure-fips
< 4.15.0-2027.30 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1012.15
- ubuntu•linux-dell300x
< 4.15.0-1022.26
- ubuntu•linux-fips
< 4.4.0-1069.75 | all | < 4.15.0-1060.68
- ubuntu•linux-gcp
< 4.15.0-1100.113~16.04.1 | all | < 5.4.0-1044.47
- ubuntu•linux-gcp-4.15
< 4.15.0-1100.113
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1044.47~18.04.2
- ubuntu•linux-gcp-edge
all
- ubuntu•linux-gcp-fips
all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
< 5.4.0-1044.46
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1044.46~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1016.17
- ubuntu•linux-gkeop-5.4
< 5.4.0-1016.17~18.04.1
- ubuntu•linux-hwe
< 4.15.0-144.148~16.04.1 | all
- ubuntu•linux-hwe-5.4
< 5.4.0-74.83~18.04.1
- ubuntu•linux-hwe-5.8
< 5.8.0-55.62~20.04.1
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 4.4.0-1100.109 | < 4.15.0-1092.94 | < 5.4.0-1040.41
- ubuntu•linux-lts-xenial
< 4.4.0-219.252~14.04.1
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1025.26
- ubuntu•linux-oem-5.6
all
- ubuntu•linux-oracle
< 4.15.0-1072.80~16.04.1 | < 4.15.0-1072.80 | < 5.4.0-1046.50
- ubuntu•linux-oracle-5.0
all
- ubuntu•linux-oracle-5.3
all
- ubuntu•linux-oracle-5.4
< 5.4.0-1046.50~18.04.2
- ubuntu•linux-raspi
< 5.4.0-1036.39
- ubuntu•linux-raspi-5.4
< 5.4.0-1036.39~18.04.1
- ubuntu•linux-raspi-realtime
all
- ubuntu•linux-raspi2
< 4.15.0-1086.91 | all
- ubuntu•linux-realtime
all
- ubuntu•linux-riscv
all
- ubuntu•linux-riscv-5.8
< 5.8.0-26.28~20.04.1
Showing first 50 affected entries in server-rendered view.
References (15)
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc7a0bb058b85ea03db87169c60c7cfdd5d34678
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PTRNPQTZ4GVS46SZ4OBXY5YDOGVPSTGQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4VCKIOXCOZGXBEZMO5LGGV5MWCHO6FT3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/T2S3I4SLRNRUQDOFYUS6IUAZMQNMPNLG/
- https://security.netapp.com/advisory/ntap-20210430-0003/
- https://ubuntu.com/security/CVE-2021-28972
- https://git.kernel.org/linus/cc7a0bb058b85ea03db87169c60c7cfdd5d34678
- https://ubuntu.com/security/notices/USN-4948-1
- https://ubuntu.com/security/notices/USN-4979-1
- https://ubuntu.com/security/notices/USN-4982-1
- https://ubuntu.com/security/notices/USN-4984-1
- https://ubuntu.com/security/notices/USN-5299-1
- https://ubuntu.com/security/notices/USN-5343-1
- https://www.cve.org/CVERecord?id=CVE-2021-28972
- https://security-tracker.debian.org/tracker/CVE-2021-28972