CVE-2021-47604

Severity CVSS v4.0:
Pending analysis
Type:
CWE-125 Out-of-bounds Read
Publication date:
19/06/2024
Last modified:
27/08/2024

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> vduse: check that offset is within bounds in get_config()<br /> <br /> This condition checks "len" but it does not check "offset" and that<br /> could result in an out of bounds read if "offset &gt; dev-&gt;config_size".<br /> The problem is that since both variables are unsigned the<br /> "dev-&gt;config_size - offset" subtraction would result in a very high<br /> unsigned value.<br /> <br /> I think these checks might not be necessary because "len" and "offset"<br /> are supposed to already have been validated using the<br /> vhost_vdpa_config_validate() function. But I do not know the code<br /> perfectly, and I like to be safe.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.15 (including) 5.15.11 (excluding)