# CVE-2026-31677: crypto: af\_alg - limit RX SG extraction by receive buffer budget

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-25 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2026-31677, DEBIAN-CVE-2026-31677, CGA-28pm-mhf7-j269, CGA-3h72-hj49-829w, CGA-7v4g-ghqp-9m47, CGA-cx87-2cxv-7hpf, CGA-wp8f-qw6f-g422, CGA-xv2p-qxj2-52g4
- Record: https://cvemate.com/vulnerability/CVE-2026-31677 · JSON: https://cvemate.com/vulnerability/CVE-2026-31677/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

crypto: af_alg - limit RX SG extraction by receive buffer budget

Make af_alg_get_rsgl() limit each RX scatterlist extraction to the
remaining receive buffer budget.

af_alg_get_rsgl() currently uses af_alg_readable() only as a gate
before extracting data into the RX scatterlist. Limit each extraction
to the remaining af_alg_rcvbuf(sk) budget so that receive-side
accounting matches the amount of data attached to the request.

If skcipher cannot obtain enough RX space for at least one chunk while
more data remains to be processed, reject the recvmsg call instead of
rounding the request length down to zero.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.162%, percentile 5.586%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 165)

- chainguard linux-aws-6.18 (Chainguard): \< 6.18.31-r0
- chainguard linux-azure-6.18 (Chainguard): \< 6.18.24-r1 \| \< 6.18.31-r0
- chainguard linux-gcp-6.18 (Chainguard): \< 6.18.31-r0
- chainguard linux-qemu-6.18 (Chainguard): \< 6.18.24-r3
- chainguard linux-vmware-6.18 (Chainguard): \< 6.18.31-r0
- debian linux (Debian): All versions (No fix recorded) \| \< 6.1.192-1 \| \< 6.12.85-1 \| \< 6.19.14-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-136.136
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1061.64
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 24)

- <https://git.kernel.org/stable/c/9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9>
- <https://git.kernel.org/stable/c/07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453>
- <https://git.kernel.org/stable/c/4a264b2614c73c96666e196bbabe0cead52bdba7>
- <https://git.kernel.org/stable/c/8eceab19eba9dcbfd2a0daec72e1bf48aa100170>
- <https://ubuntu.com/security/CVE-2026-31677>
- <https://www.cve.org/CVERecord?id=CVE-2026-31677>
- <https://git.kernel.org/linus/8eceab19eba9dcbfd2a0daec72e1bf48aa100170>
- <https://ubuntu.com/security/notices/USN-8567-1>
- <https://ubuntu.com/security/notices/USN-8574-1>
- <https://ubuntu.com/security/notices/USN-8574-2>
- <https://ubuntu.com/security/notices/USN-8595-1>
- <https://ubuntu.com/security/notices/USN-8596-1>
- <https://ubuntu.com/security/notices/USN-8595-2>
- <https://ubuntu.com/security/notices/USN-8606-1>
- <https://ubuntu.com/security/notices/USN-8607-1>
- <https://ubuntu.com/security/notices/USN-8608-1>
- <https://ubuntu.com/security/notices/USN-8609-1>
- <https://ubuntu.com/security/notices/USN-8574-3>
- <https://ubuntu.com/security/notices/USN-8595-3>
- <https://ubuntu.com/security/notices/USN-8619-1>

---

Data as of 2026-12-06T04:16:56.053Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
