CVE-2026-43492
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2026
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
lib/crypto: mpi: Fix integer underflow in mpi_read_raw_from_sgl()
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.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | a1793a48881ec8d26e9c79b0ee65753f1c6846a4 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 1abd50fc3cfa16fc2074a3c8c2729c50fd9d7043 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 6d63615c796c085b4984e3031b9fa77fffb47360 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 2aa77a18dc7f2670497fe3ee5acbeda0b57659e5 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 26d3a97ad46c7a9226ec04d4bf35bd4998a97d16 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 8637dfb4c1d8a7026ef681f2477c6de8b71c4003 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 30e513e755bb381afce6fb57cdc8694136193f22 | Unavailable | None listed |
| 2d4d1eea540b27c72488fd1914674c42473d53df | affected | git | 8c2f1288250a90a4b5cabed5d888d7e3aeed4035 | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 4.4 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 4.4 | Unavailable | None listed |
| 5.10.259 | unaffected | semver | Unavailable | 5.10.* | None listed |
| 5.15.210 | unaffected | semver | Unavailable | 5.15.* | None listed |
| 6.1.176 | unaffected | semver | Unavailable | 6.1.* | None listed |
| 6.6.140 | unaffected | semver | Unavailable | 6.6.* | None listed |
| 6.12.88 | unaffected | semver | Unavailable | 6.12.* | None listed |
| 6.18.30 | unaffected | semver | Unavailable | 6.18.* | None listed |
| 7.0.7 | unaffected | semver | Unavailable | 7.0.* | None listed |
| 7.1 | unaffected | original_commit_for_fix | Unavailable | * | None listed |