CVE-2026-31677

Source
https://cve.org/CVERecord?id=CVE-2026-31677
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31677.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31677
Downstream
Published
2026-04-25T08:46:53.379Z
Modified
2026-04-26T04:22:23.480648Z
Summary
crypto: af_alg - limit RX SG extraction by receive buffer budget
Details

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

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

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

afalggetrsgl() currently uses afalgreadable() only as a gate before extracting data into the RX scatterlist. Limit each extraction to the remaining afalg_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31677.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e870456d8e7c8d57c059ea479b5aadbb55ff4c3a
Fixed
9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9
Fixed
07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453
Fixed
4a264b2614c73c96666e196bbabe0cead52bdba7
Fixed
8eceab19eba9dcbfd2a0daec72e1bf48aa100170

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31677.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.14.0
Fixed
6.12.83
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.24
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.14

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31677.json"