ipv6: sr: fix memleak in seg6_hmac_init_algo
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bf355b8d2c30a289232042cacc1cfaea4923936c · < 0e44d6cbe8de983470c3d2f978649783384fdcb6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: sr: fix memleak in seg6_hmac_init_algo
seg6_hmac_init_algo returns without cleaning up the previous allocations if one fails, so it's going to leak all that memory and the crypto tfms.
Update seg6_hmac_exit to only free the memory when allocated, so we can reuse the code directly.
From the CVE record · Linux
The Linux kernel's seg6_hmac_init_algo can leak allocated memory and crypto transforms when an allocation fails. The input does not specify how an attacker could trigger the failure, or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.