diff options
| author | Dan Carpenter <[email protected]> | 2025-06-25 18:57:52 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-26 18:46:13 +0000 |
| commit | 80744a3bed8ce65071ca6e970a5f8b7c12213d3d (patch) | |
| tree | aebdd9a6a05c7b0ae0344354fc909f841104dd96 /lib/crypto/mpi/mpiutil.c | |
| parent | ACPI: APEI: EINJ: Update the documentation for EINJv2 support (diff) | |
| download | kernel-80744a3bed8ce65071ca6e970a5f8b7c12213d3d.tar.gz kernel-80744a3bed8ce65071ca6e970a5f8b7c12213d3d.zip | |
ACPI: APEI: EINJ: prevent memory corruption in error_type_set()
The "einj_buf" buffer is 32 chars. If "count" is larger than that it
results in memory corruption. Cap it at 31 so that we leave the last
character as a NUL terminator. By the way, the highest reasonable value
for "count" is 24.
Fixes: 0c6176e1e186 ("ACPI: APEI: EINJ: Enable the discovery of EINJv2 capabilities")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
