crypto: hisilicon/sec2 - prevent req used-after-free for sec
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.337.0.107.1In the Linux kernel, the following vulnerability has been resolved:
crypto: hisilicon/sec2 - prevent req used-after-free for sec
During packet transmission, if the system is under heavy load, the hardware might complete processing the packet and free the request memory (req) before the transmission function finishes. If the software subsequently accesses this req, a use-after-free error will occur. The qp_ctx memory exists throughout the packet sending process, so replace the req with the qp_ctx.
From the CVE record · Linux
The Linux kernel’s hisilicon/sec2 crypto driver can access request memory after hardware has freed it during packet transmission under heavy load. This causes a use-after-free; the input does not specify an attacker path, authentication requirements, or user interaction.
Teams running Linux kernels with the hisilicon/sec2 crypto driver should check their versions; affected versions were not specified.