KEYS: fix overflow in keyctl_pkey_params_get_2()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 00d60fd3b93219ea854220f0fd264b86398cbc53 · < b11c1fa32667692a2c0566e10163758e786e430c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KEYS: fix overflow in keyctl_pkey_params_get_2()
The length for the internal output buffer is calculated incorrectly, which can result overflow when a too small buffer is provided.
Fix the bug by allocating internal output with the size of the maximum length of the cryptographic primitive instead of caller provided size.
From the CVE record · Linux
The Linux kernel calculates an internal output buffer length incorrectly in keyctl_pkey_params_get_2(). A caller that provides a too-small buffer can trigger an overflow. The input does not specify authentication requirements or whether this can be triggered over a network.
Teams running Linux kernels should check whether their kernel includes the fix; affected versions were not specified.