VDB

CVE-2026-43492

CVE-2026-43492 PUBLISHED

lib/crypto: mpi: Fix integer underflow in mpi_read_raw_from_sgl()

Reported by linux · Published May 19, 2026

In the Linux kernel, the following vulnerability has been resolved: lib/crypto: mpi: Fix integer underflow in mpi_read_raw_from_sgl() Yiming reports an integer underflow in mpi_read_raw_from_sgl() when subtracting "lzeros" from the unsigned "nbytes". For this to happen, the scatterlist "sgl" needs to occupy more bytes than the "nbytes" parameter and the first "nbytes + 1" bytes of the scatterlist must be zero. Under these conditions, the while loop iterating over the scatterlist will count more zeroes than "nbytes", subtract the number of zeroes from "nbytes" and cause the underflow. When commit 2d4d1eea540b ("lib/mpi: Add mpi sgl helpers") originally introduced the bug, it couldn't be triggered because all callers of mpi_read_raw_from_sgl() passed a scatterlist whose length was equal to "nbytes". However since commit 63ba4d67594a ("KEYS: asymmetric: Use new crypto interface without scatterlists"), the underflow can now actually be triggered. When invoking a KEYCTL_PKEY_ENCRYPT system call with a larger "out_len" than "in_len" and filling the "in" buffer with zeroes, crypto_akcipher_sync_prep() will create an all-zero scatterlist used for both the "src" and "dst" member of struct akcipher_request and thereby fulfil the conditions to trigger the bug: sys_keyctl() keyctl_pkey_e_d_s() asymmetric_key_eds_op() software_key_eds_op() crypto_akcipher_sync_encrypt() crypto_akcipher_sync_prep() crypto_akcipher_encrypt() rsa_enc() mpi_read_raw_from_sgl() To the user this will be visible as a DoS as the kernel spins forever, causing soft lockup splats as a side effect. Fix it.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-livepatch-6.1.176-220.358Amazon Linux1:1.0-0.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.88-119.157.amzn2023
kernel6.18-headersAmazon Linux1:6.18.30-61.116.amzn2023
kernel-headersAmazon Linux1:6.1.176-220.358.amzn2023
LinuxLinux8c2f1288250a90a4b5cabed5d888d7e3aeed4035

Affected products

VendorProductVersions
LinuxLinux2d4d1eea540b27c72488fd1914674c42473d53df, 2d4d1eea540b27c72488fd1914674c42473d53df, 2d4d1eea540b27c72488fd1914674c42473d53df
LinuxLinux4.4, 0, 5.10.259
amazon:2023kernel-livepatch-6.1.176-220.3580
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.18-headers0
amazon:2023kernel-headers0
amazon:2023kernel6.12-devel0
amazon:2023python3-perf6.120
amazon:2023kernel-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel6.18-tools0
amazon:2023perf6.120
amazon:2023kernel6.12-tools0
amazon:2023kernel-livepatch-6.18.30-61.1160
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.7, 3.1.6
amazon:2023kernel-devel0
amazon:2023kernel6.12-modules-extra0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.6, 3.1.7
amazon:2023kernel-livepatch-6.12.88-119.1570
amazon:2023kernel6.180

…and 26 more

Timeline

  • May 18, 2026 CVE Published
  • May 19, 2026 EPSS Score (26 in total, the first dated here)
  • May 19, 2026 PoC Published
  • May 20, 2026 Coalition ESS Score
  • May 20, 2026 Security Advisory (43 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (41 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-43492
vulnetix vdb fixes CVE-2026-43492

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-43492/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›