[PATCH v2 4/6] KEYS: Prevent overflow of quota in key_alloc()
Eric Biggers
ebiggers at kernel.org
Mon Oct 19 19:25:45 UTC 2026
On Mon, Oct 19, 2026 at 09:17:24PM +0300, Jarkko Sakkinen wrote:
> Check that the calculated quota length does not go over INT_MAX.
>
> Cc: stable at vger.kernel.org
> Assisted-by: LLM
> Fixes: 7e047ef5fe2d ("[PATCH] keys: sort out key quota system")
> Reviewed-by: David Howells <dhowells at redhat.com>
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
Seems this should be merged into patch 3?
Also is this reachable? I.e. do any of the key types actually specify
def_datalen > INT_MAX - KEY_MAX_DESC_SIZE + 1?
- Eric
More information about the Linux-security-module-archive
mailing list