Buffer overflow in Linux

CVE-2021-47609

In the Linux kernel, the following vulnerability has been resolved:

firmware: arm_scpi: Fix string overflow in SCPI genpd driver

Without the bound checks for scpi_pd->name, it could result in the buffer
overflow when copying the SCPI device name from the corresponding device
tree node as the name string is set at maximum size of 30.

Let us fix it by using devm_kasprintf so that the string buffer is
allocated dynamically.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

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

EPSS exploit prediction

EPSS 0.003, 17.8th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 8bec4337ad4023b26de35d3b0c3a3b2735ffc5c7, 4.8, 0
  • Linux Kernel — versions 5.16

Weakness classification (CWE)

References