platform/x86/intel/tpmi: use cleanup helpers in mem_write()
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
platform/x86/intel/tpmi: use cleanup helpers in mem_write()
In mem_write(), the temporary array returned by parse_int_array_user() must be released on all exit paths. Convert the array variable to use cleanup.h scope-based cleanup so it is freed automatically on return.
This also moves the array declaration next to parse_int_array_user() as required by cleanup.h usage guidelines.
From the CVE record · Linux
The Linux kernel's Intel TPMI mem_write() may fail to free a temporary array on some exit paths. This can leak memory when the function is used; the input does not establish whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with the Intel TPMI component should check their versions; affected versions are not specified.