2024-02-27 13:34:08

by Carlos López

[permalink] [raw]
Subject: Re: CVE-2021-46934: i2c: validate user data in compat ioctl

Hi,

On 27/2/24 10:48, Greg Kroah-Hartman wrote:
> Description
> ===========
>
> In the Linux kernel, the following vulnerability has been resolved:
>
> i2c: validate user data in compat ioctl
>
> Wrong user data may cause warning in i2c_transfer(), ex: zero msgs.
> Userspace should not be able to trigger warnings, so this patch adds
> validation checks for user data in compact ioctl to prevent reported
> warnings

What's the security impact here exactly?

--
Carlos López
Security Engineer
SUSE Software Solutions


2024-02-27 14:33:51

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: CVE-2021-46934: i2c: validate user data in compat ioctl

On Tue, Feb 27, 2024 at 02:33:50PM +0100, Carlos L?pez wrote:
> Hi,
>
> On 27/2/24 10:48, Greg Kroah-Hartman wrote:
> > Description
> > ===========
> >
> > In the Linux kernel, the following vulnerability has been resolved:
> >
> > i2c: validate user data in compat ioctl
> >
> > Wrong user data may cause warning in i2c_transfer(), ex: zero msgs.
> > Userspace should not be able to trigger warnings, so this patch adds
> > validation checks for user data in compact ioctl to prevent reported
> > warnings
>
> What's the security impact here exactly?

Userspace should never be able to trigger kernel warnings.