CVE-2026-80831: crypto: mxs-dcp - fix source scatterlist length access
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
crypto: mxs-dcp - fix source scatterlist length access
mxs_dcp_aes_block_crypt() uses sg_dma_len() without mapping the source scatterlist with dma_map_sg() first. Therefore, sg_dma_len() is invalid and could return zero or a stale DMA length, causing encryption and decryption to process the wrong number of bytes when CONFIG_NEED_SG_DMA_LENGTH=y.
Use the original scatterlist length instead.
The Linux kernel CVE team has assigned CVE-2026-80831 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 5.10.269 with commit fd0f211b27a6ec2ebd8c315683401b43adcc5511 Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 5.15.220 with commit 04201dcc88b26eac52f736e39727fc5c420b7257 Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 6.1.187 with commit e72a795df521cb65b7c4705cc11078cdacfaa2f4 Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 6.6.156 with commit 1537bd55b4f842565068c54b47cd2ae1777d5f8f Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 6.12.108 with commit da14fae5203b72ca71ccfa9af8de9249e40d533a Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 6.18.49 with commit 182f16a20d329a1c818d51dad57d9bf43d356c7c Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 7.1.13 with commit 0e9edb108a63bbbef952dfcbc597e34ed9c1fb74 Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 7.2.3 with commit 6ef9a4afb52cb102ab038cd42352c142d8505d09 Issue introduced in 3.14 with commit 15b59e7c3733f90ff1f7dd66ad77ae1c90bcdff5 and fixed in 7.3-rc1 with commit c5bcb084a9871e5b62afb5f48b60adfa13b5d9f8
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-80831
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/crypto/mxs-dcp.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/fd0f211b27a6ec2ebd8c315683401b43adcc5511 https://git.kernel.org/stable/c/04201dcc88b26eac52f736e39727fc5c420b7257 https://git.kernel.org/stable/c/e72a795df521cb65b7c4705cc11078cdacfaa2f4 https://git.kernel.org/stable/c/1537bd55b4f842565068c54b47cd2ae1777d5f8f https://git.kernel.org/stable/c/da14fae5203b72ca71ccfa9af8de9249e40d533a https://git.kernel.org/stable/c/182f16a20d329a1c818d51dad57d9bf43d356c7c https://git.kernel.org/stable/c/0e9edb108a63bbbef952dfcbc597e34ed9c1fb74 https://git.kernel.org/stable/c/6ef9a4afb52cb102ab038cd42352c142d8505d09 https://git.kernel.org/stable/c/c5bcb084a9871e5b62afb5f48b60adfa13b5d9f8