[RFC PATCH 3/8] KEYS: Reject @desclen values over U16_MAX in key_alloc()

Jarkko Sakkinen jarkko at kernel.org
Mon Oct 19 16:32:29 UTC 2026


On Mon, Oct 19, 2026 at 04:35:19PM +0100, David Howells wrote:
> Jarkko Sakkinen <jarkko at kernel.org> wrote:
> 
> > Reject @desclen values over U16_MAX with -EINVAL in order to prevent
> > integer overflow.
> 
> KEY_MAX_DESC_SIZE.
> 
> David

Good catch, thanks.

Br, Jarkko



More information about the Linux-security-module-archive mailing list