Re: CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds
From: gregkh@xxxxxxxxxxxxxxxxxxx
Date: Wed Jul 24 2024 - 06:14:28 EST
On Wed, Jul 24, 2024 at 10:05:53AM +0000, Siddh Raman Pant wrote:
> On Tue, 25 Jun 2024 16:29:04 +0200, Greg Kroah-Hartman wrote:
> > In the Linux kernel, the following vulnerability has been resolved:
> >
> > drm/amdgpu: add error handle to avoid out-of-bounds
> >
> > if the sdma_v4_0_irq_id_to_seq return -EINVAL, the process should
> > be stop to avoid out-of-bounds read, so directly return -EINVAL.
> >
> > The Linux kernel CVE team has assigned CVE-2024-39471 to this issue.
>
> This commit has a bug which was fixed by 6769a23697f1. It should be
> immediately backported, otherwise this "fix" doesn't do anything since
> gcc will optimise out the check.
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
(hint, send the request to stable@xxxxxxxxxxxxxxx, not
cve@xxxxxxxxxx...)
Also, any specific reason why that commit was NOT marked for stable
inclusion by the developers/maintainers involved with it and you didn't
cc any of them here either :(
thanks,
greg k-h