mbox series

[SRU,Bionic,Focal,OEM-5.10,HWE-5.11,Impish,OEM-5.14,Jammy,0/1] CVE-2022-22942

Message ID 20220127205812.34060-1-cascardo@canonical.com
Headers show
Series CVE-2022-22942 | expand

Message

Thadeu Lima de Souza Cascardo Jan. 27, 2022, 8:58 p.m. UTC
[Impact]
Unprivileged users with DRM access on a system using vmwgfx could gain
access to files opened by other processes.

[Fix]
Backports were provided by author and tested on kernels 4.15, 5.4, 5.10,
5.11, 5.13, 5.14 and 5.15.

[Test case]
A program that exercises the changed path gets EFAULT as expected.

[Potential regression]
Only vmwgfx users should be affected.

Mathias Krause (1):
  UBUNTU: SAUCE: drm/vmwgfx: Fix stale file descriptors on failed
    usercopy

 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h     |  5 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 34 ++++++++++++-------------
 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |  2 +-
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c     |  2 +-
 4 files changed, 21 insertions(+), 22 deletions(-)

Comments

Luke Nowakowski-Krijger Jan. 27, 2022, 9:45 p.m. UTC | #1
On Thu, Jan 27, 2022 at 12:59 PM Thadeu Lima de Souza Cascardo <
cascardo@canonical.com> wrote:

> [Impact]
> Unprivileged users with DRM access on a system using vmwgfx could gain
> access to files opened by other processes.
>
> [Fix]
> Backports were provided by author and tested on kernels 4.15, 5.4, 5.10,
> 5.11, 5.13, 5.14 and 5.15.
>
> [Test case]
> A program that exercises the changed path gets EFAULT as expected.
>
> [Potential regression]
> Only vmwgfx users should be affected.
>
> Mathias Krause (1):
>   UBUNTU: SAUCE: drm/vmwgfx: Fix stale file descriptors on failed
>     usercopy
>
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.h     |  5 ++--
>  drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 34 ++++++++++++-------------
>  drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |  2 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_kms.c     |  2 +-
>  4 files changed, 21 insertions(+), 22 deletions(-)
>
> --
> 2.32.0
>
>
Acked-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>

- Luke

>
> --
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
>
Ian May Jan. 27, 2022, 10:25 p.m. UTC | #2
Acked-by: Ian May <ian.may@canonical.com>

On 2022-01-27 17:58:10 , Thadeu Lima de Souza Cascardo wrote:
> [Impact]
> Unprivileged users with DRM access on a system using vmwgfx could gain
> access to files opened by other processes.
> 
> [Fix]
> Backports were provided by author and tested on kernels 4.15, 5.4, 5.10,
> 5.11, 5.13, 5.14 and 5.15.
> 
> [Test case]
> A program that exercises the changed path gets EFAULT as expected.
> 
> [Potential regression]
> Only vmwgfx users should be affected.
> 
> Mathias Krause (1):
>   UBUNTU: SAUCE: drm/vmwgfx: Fix stale file descriptors on failed
>     usercopy
> 
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.h     |  5 ++--
>  drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 34 ++++++++++++-------------
>  drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |  2 +-
>  drivers/gpu/drm/vmwgfx/vmwgfx_kms.c     |  2 +-
>  4 files changed, 21 insertions(+), 22 deletions(-)
> 
> -- 
> 2.32.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Timo Aaltonen Jan. 31, 2022, 12:54 p.m. UTC | #3
On 27.1.2022 22.58, Thadeu Lima de Souza Cascardo wrote:
> [Impact]
> Unprivileged users with DRM access on a system using vmwgfx could gain
> access to files opened by other processes.
> 
> [Fix]
> Backports were provided by author and tested on kernels 4.15, 5.4, 5.10,
> 5.11, 5.13, 5.14 and 5.15.
> 
> [Test case]
> A program that exercises the changed path gets EFAULT as expected.
> 
> [Potential regression]
> Only vmwgfx users should be affected.
> 
> Mathias Krause (1):
>    UBUNTU: SAUCE: drm/vmwgfx: Fix stale file descriptors on failed
>      usercopy
> 
>   drivers/gpu/drm/vmwgfx/vmwgfx_drv.h     |  5 ++--
>   drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 34 ++++++++++++-------------
>   drivers/gpu/drm/vmwgfx/vmwgfx_fence.c   |  2 +-
>   drivers/gpu/drm/vmwgfx/vmwgfx_kms.c     |  2 +-
>   4 files changed, 21 insertions(+), 22 deletions(-)
> 

applied to oem-5.14, thanks
Andrea Righi Jan. 31, 2022, 1:19 p.m. UTC | #4
On Thu, Jan 27, 2022 at 05:58:10PM -0300, Thadeu Lima de Souza Cascardo wrote:
> [Impact]
> Unprivileged users with DRM access on a system using vmwgfx could gain
> access to files opened by other processes.
> 
> [Fix]
> Backports were provided by author and tested on kernels 4.15, 5.4, 5.10,
> 5.11, 5.13, 5.14 and 5.15.
> 
> [Test case]
> A program that exercises the changed path gets EFAULT as expected.
> 
> [Potential regression]
> Only vmwgfx users should be affected.

Applied to jammy/linux, thanks!

-Andrea