Linux
KEYS: fix overflow in keyctl_pkey_params_get_2()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < 622ec2dcd59f21623f2a7ab773c80ceb7d555e3a
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < b1e247338bc71826a2d2def3e0874c34749df69a
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < 0f3058d7d26f81df9b68a18ddbe164bdc3c5eff3
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < 5966e4e2ba213ab7ad559166152eb4f1f170dd2c
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < 5165f1cc727f1322456735df212d8e26ec237a8d
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < b11c1fa32667692a2c0566e10163758e786e430c
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < 670fc6a311ed321522b7fff92cf0fc376b4f6e78
- >= 00d60fd3b93219ea854220f0fd264b86398cbc53, < cb481e59ea6cae3b7796ac1d7a22b6b24c3f3c0b
Fixed in 622ec2dcd59f21623f2a7ab773c80ceb7d555e3a, b1e247338bc71826a2d2def3e0874c34749df69a, 0f3058d7d26f81df9b68a18ddbe164bdc3c5eff3, 5966e4e2ba213ab7ad559166152eb4f1f170dd2c, 5165f1cc727f1322456735df212d8e26ec237a8d, b11c1fa32667692a2c0566e10163758e786e430c, 670fc6a311ed321522b7fff92cf0fc376b4f6e78, cb481e59ea6cae3b7796ac1d7a22b6b24c3f3c0b
- 4.20
Fixed in 0, 5.10.260, 5.15.211, 6.1.177, 6.6.144, 6.12.95, 6.18.38, 7.1.3, 7.2
Mitigation
Upgrade Linux to 622ec2dcd59f21623f2a7ab773c80ceb7d555e3a or b1e247338bc71826a2d2def3e0874c34749df69a or 0f3058d7d26f81df9b68a18ddbe164bdc3c5eff3 or 5966e4e2ba213ab7ad559166152eb4f1f170dd2c or 5165f1cc727f1322456735df212d8e26ec237a8d or b11c1fa32667692a2c0566e10163758e786e430c or 670fc6a311ed321522b7fff92cf0fc376b4f6e78 or cb481e59ea6cae3b7796ac1d7a22b6b24c3f3c0b or later.
Upgrade Linux to 0 or 5.10.260 or 5.15.211 or 6.1.177 or 6.6.144 or 6.12.95 or 6.18.38 or 7.1.3 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.