CVE-2026-80524: optee: ffa: Add NULL check in optee_ffa_lend_protmem
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
optee: ffa: Add NULL check in optee_ffa_lend_protmem
Sashiko (locally) reports a possible null dereference under memory pressure due to the lack of validation of the allocated pointer.
Fix that by adding the missing check.
The Linux kernel CVE team has assigned CVE-2026-80524 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 2b78d79cdf963e09ec8b90c55216b6ab5a83dbaf and fixed in 7.1.10 with commit 94bf4fe0e46349c4e73df66dcda073187bc90cc1 Issue introduced in 6.18 with commit 2b78d79cdf963e09ec8b90c55216b6ab5a83dbaf and fixed in 7.2 with commit 650c88738ae8976f46ba71b24dd8aa311adc6fde
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80524
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/tee/optee/ffa_abi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/94bf4fe0e46349c4e73df66dcda073187bc90cc1 https://git.kernel.org/stable/c/650c88738ae8976f46ba71b24dd8aa311adc6fde