crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7901c1a8effbe5f89673bfc09d6e37b8f334f1a7 · < 6af753ac5205115e6c310c8c4236c01b59a1c44f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id
Use check_add_overflow() to guard against potential integer overflows when adding the binary blob lengths and the size of an asymmetric_key_id structure and return ERR_PTR(-EOVERFLOW) accordingly. This prevents a possible buffer overflow when copying data from potentially malicious X.509 certificate fields that can be arbitrarily large, such as ASN.1 INTEGER serial numbers, issuer names, etc.
From the CVE record · Linux
An integer overflow in the Linux kernel's asymmetric_key_generate_id function can lead to a buffer overflow when copying data from malicious X.509 certificate fields. The input does not specify how an attacker could supply a certificate, whether authentication is needed, or whether user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.