Re: CVE-2024-49888: bpf: Fix a sdiv overflow issue

From: Shung-Hsi Yu
Date: Fri Nov 08 2024 - 00:30:02 EST


On Mon, Oct 21, 2024 at 08:01:36PM GMT, Greg Kroah-Hartman wrote:
> Description
> ===========
>
> In the Linux kernel, the following vulnerability has been resolved:
>
> bpf: Fix a sdiv overflow issue
>
...
>
> The Linux kernel CVE team has assigned CVE-2024-49888 to this issue.
>
> Affected and fixed versions
> ===========================
>
> Fixed in 6.10.14 with commit 4902a6a0dc59
> Fixed in 6.11.3 with commit d22e45a369af
> Fixed in 6.12-rc1 with commit 7dd34d7b7dcf

The issue is introduced with the addition of signed division
instruction, part of the BPF v4 instruction-set, in commit ec0e2da95f72
("bpf: Support new signed div/mod instructions.").

I'll send a patch adding the ".vulnerable" file to the vulns.git repo
for this CVE.

Best,
Shung-Hsi Yu