* CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds
@ 2024-06-25 14:29 Greg Kroah-Hartman
2024-07-24 10:05 ` Siddh Raman Pant
0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2024-06-25 14:29 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
Description
===========
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.
Affected and fixed versions
===========================
Fixed in 5.4.278 with commit 5594971e0276
Fixed in 5.10.219 with commit 8112fa72b7f1
Fixed in 5.15.161 with commit ea906e9ac61e
Fixed in 6.1.94 with commit 011552f29f20
Fixed in 6.6.34 with commit 5b0a3dc3e878
Fixed in 6.9.5 with commit 0964c84b93db
Fixed in 6.10-rc1 with commit 8b2faf1a4f3b
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2024-39471
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/5594971e02764aa1c8210ffb838cb4e7897716e8
https://git.kernel.org/stable/c/8112fa72b7f139052843ff484130d6f97e9f052f
https://git.kernel.org/stable/c/ea906e9ac61e3152bef63597f2d9f4a812fc346a
https://git.kernel.org/stable/c/011552f29f20842c9a7a21bffe1f6a2d6457ba46
https://git.kernel.org/stable/c/5b0a3dc3e87821acb80e841b464d335aff242691
https://git.kernel.org/stable/c/0964c84b93db7fbf74f357c1e20957850e092db3
https://git.kernel.org/stable/c/8b2faf1a4f3b6c748c0da36cda865a226534d520
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds
2024-06-25 14:29 CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds Greg Kroah-Hartman
@ 2024-07-24 10:05 ` Siddh Raman Pant
2024-07-24 10:14 ` gregkh
2024-07-24 10:24 ` Siddh Raman Pant
0 siblings, 2 replies; 5+ messages in thread
From: Siddh Raman Pant @ 2024-07-24 10:05 UTC (permalink / raw)
To: gregkh@linuxfoundation.org; +Cc: cve@kernel.org, linux-kernel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
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.
Thanks,
Siddh
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds
2024-07-24 10:05 ` Siddh Raman Pant
@ 2024-07-24 10:14 ` gregkh
2024-07-24 10:19 ` Siddh Raman Pant
2024-07-24 10:24 ` Siddh Raman Pant
1 sibling, 1 reply; 5+ messages in thread
From: gregkh @ 2024-07-24 10:14 UTC (permalink / raw)
To: Siddh Raman Pant; +Cc: cve@kernel.org, linux-kernel@vger.kernel.org
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@vger.kernel.org, not
cve@kernel.org...)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds
2024-07-24 10:14 ` gregkh
@ 2024-07-24 10:19 ` Siddh Raman Pant
0 siblings, 0 replies; 5+ messages in thread
From: Siddh Raman Pant @ 2024-07-24 10:19 UTC (permalink / raw)
To: gregkh@linuxfoundation.org; +Cc: cve@kernel.org, linux-kernel@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]
On Wed, Jul 24 2024 at 15:44:12 +0530, gregkh@linuxfoundation.org
wrote:
> 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@vger.kernel.org, not
> cve@kernel.org...)
>
> 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 :(
Oops, sorry, my bad.
Siddh
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds
2024-07-24 10:05 ` Siddh Raman Pant
2024-07-24 10:14 ` gregkh
@ 2024-07-24 10:24 ` Siddh Raman Pant
1 sibling, 0 replies; 5+ messages in thread
From: Siddh Raman Pant @ 2024-07-24 10:24 UTC (permalink / raw)
To: stable@vger.kernel.org
Cc: alexander.deucher@amd.com, amd-gfx@lists.freedesktop.org,
kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org,
dan.carpenter@linaro.org, linux-kernel@vger.kernel.org,
bob.zhou@amd.com
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
(Mail V2: Send to correct mailing list and CCing relevant people.)
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.
Thanks,
Siddh
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-07-24 12:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 14:29 CVE-2024-39471: drm/amdgpu: add error handle to avoid out-of-bounds Greg Kroah-Hartman
2024-07-24 10:05 ` Siddh Raman Pant
2024-07-24 10:14 ` gregkh
2024-07-24 10:19 ` Siddh Raman Pant
2024-07-24 10:24 ` Siddh Raman Pant
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.