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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-04-25T08:46:53.379Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 960c56743988d8ce9ff9b5d770dbeb5f64823a23; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 7e345de2e69475430af85e09210795d8eb8e719c; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 4a264b2614c73c96666e196bbabe0cead52bdba7; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 8eceab19eba9dcbfd2a0daec72e1bf48aa100170
- Anyone running Linux 4.14

## Description

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.

## Affected and fixed versions

- Linux: \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 960c56743988d8ce9ff9b5d770dbeb5f64823a23; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 7e345de2e69475430af85e09210795d8eb8e719c; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 4a264b2614c73c96666e196bbabe0cead52bdba7; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 8eceab19eba9dcbfd2a0daec72e1bf48aa100170 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 8eceab19eba9dcbfd2a0daec72e1bf48aa100170 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31677. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31677.md
Affected: Linux >= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, < 960c56743988d8ce9ff9b5d770dbeb5f64823a23; >= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, < 7e345de2e69475430af85e09210795d8eb8e719c; >= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, < 9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9; >= e870456d8e7c8d57c059ea4…
Fixed in: Linux 960c56743988d8ce9ff9b5d770dbeb5f64823a23, Linux 7e345de2e69475430af85e09210795d8eb8e719c, Linux 9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9, Linux 07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453, Linux 4a264b2614c73c96666e196bbabe0cead52bdba7, Linux 8eceab19eba9dcbfd2a0daec72e1bf48aa100170

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31677 being exploited?

There is no confirmed exploitation: CVE-2026-31677 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31677?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31677?

Linux \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 960c56743988d8ce9ff9b5d770dbeb5f64823a23; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 7e345de2e69475430af85e09210795d8eb8e719c; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 4a264b2614c73c96666e196bbabe0cead52bdba7; \>= e870456d8e7c8d57c059ea479b5aadbb55ff4c3a, \< 8eceab19eba9dcbfd2a0daec72e1bf48aa100170; Linux 4.14.

### Is there a fix for CVE-2026-31677?

Yes. Fixed in Linux 960c56743988d8ce9ff9b5d770dbeb5f64823a23, Linux 7e345de2e69475430af85e09210795d8eb8e719c, Linux 9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9, Linux 07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453, Linux 4a264b2614c73c96666e196bbabe0cead52bdba7, Linux 8eceab19eba9dcbfd2a0daec72e1bf48aa100170. Upgrade Linux to 8eceab19eba9dcbfd2a0daec72e1bf48aa100170 or later.

### How do I check if I'm affected by CVE-2026-31677?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9>
- patch: <https://git.kernel.org/stable/c/07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453>
- patch: <https://git.kernel.org/stable/c/4a264b2614c73c96666e196bbabe0cead52bdba7>
- patch: <https://git.kernel.org/stable/c/8eceab19eba9dcbfd2a0daec72e1bf48aa100170>
- other: <https://git.kernel.org/stable/c/960c56743988d8ce9ff9b5d770dbeb5f64823a23>
- other: <https://git.kernel.org/stable/c/7e345de2e69475430af85e09210795d8eb8e719c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31677>

HTML: <https://flawdb.com/CVE-2026-31677> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31677>
