Buffer overflow in Linux Kernel

CVE-2021-28972

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.

Vulnerability class: Buffer Overflow

EPSS: 0.009 (54.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-28972?
CVE-2021-28972 is a medium-severity vulnerability in Linux Kernel, classified under Buffer Copy without Checking Size of Input (Classic Buffer Overflow). CVSS score: 6.7/10. Published 2021-03-22.
How severe is CVE-2021-28972?
Medium severity. CVSS v3 base score is 6.7 out of 10.
Is CVE-2021-28972 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.