CVE-2024-50254
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
09/11/2024
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
bpf: Free dynamically allocated bits in bpf_iter_bits_destroy()<br />
<br />
bpf_iter_bits_destroy() uses "kit->nr_bits bit to kit->nr_bits instead of setting<br />
kit->nr_bits to zero when the iteration completes in<br />
bpf_iter_bits_next(). In addition, use "!nr_bits || bits >= nr_bits" to<br />
check whether the iteration is complete and still use "nr_bits > 64" to<br />
indicate whether bits are dynamically allocated. The "!nr_bits" check is<br />
necessary because bpf_iter_bits_new() may fail before setting<br />
kit->nr_bits, and this condition will stop the iteration early instead<br />
of accessing the zeroed or freed kit->bits.<br />
<br />
Considering the initial value of kit->bits is -1 and the type of<br />
kit->nr_bits is unsigned int, change the type of kit->nr_bits to int.<br />
The potential overflow problem will be handled in the following patch.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.11 (including) | 6.11.7 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



