{"id":"CVE-2026-31677","aliases":["CVE-2026-31677"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: af_alg - limit RX SG extraction by receive buffer budget","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: af_alg - limit RX SG extraction by receive buffer budget\n\nMake af_alg_get_rsgl() limit each RX scatterlist extraction to the\nremaining receive buffer budget.\n\naf_alg_get_rsgl() currently uses af_alg_readable() only as a gate\nbefore extracting data into the RX scatterlist. Limit each extraction\nto the remaining af_alg_rcvbuf(sk) budget so that receive-side\naccounting matches the amount of data attached to the request.\n\nIf skcipher cannot obtain enough RX space for at least one chunk while\nmore data remains to be processed, reject the recvmsg call instead of\nrounding the request length down to zero.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: af_alg - limit RX SG extraction by receive buffer budget\n\nMake af_alg_get_rsgl() limit each RX scatterlist extraction to the\nremaining receive buffer budget.\n\naf_alg_get_rsgl() currently uses af_alg_readable() only as a gate\nbefore extracting data into the RX scatterlist. Limit each extraction\nto the remaining af_alg_rcvbuf(sk) budget so that receive-side\naccounting matches the amount of data attached to the request.\n\nIf skcipher cannot obtain enough RX space for at least one chunk while\nmore data remains to be processed, reject the recvmsg call instead of\nrounding the request length down to zero.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: af_alg - limitar la extracción de SG de RX por el presupuesto del búfer de recepción\n\nHacer que af_alg_get_rsgl() limite cada extracción de scatterlist de RX al presupuesto restante del búfer de recepción.\n\naf_alg_get_rsgl() actualmente usa af_alg_readable() solo como una puerta antes de extraer datos en el scatterlist de RX. Limitar cada extracción al presupuesto restante de af_alg_rcvbuf(sk) para que la contabilidad del lado de recepción coincida con la cantidad de datos adjuntos a la solicitud.\n\nSi skcipher no puede obtener suficiente espacio de RX para al menos un fragmento mientras queden más datos por procesar, rechazar la llamada a recvmsg en lugar de redondear la longitud de la solicitud a cero.","source":"nvd"}],"published":"2026-04-25T08:46:53.379Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","fixed":"960c56743988d8ce9ff9b5d770dbeb5f64823a23","status":"affected"},{"type":"git","introduced":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","fixed":"7e345de2e69475430af85e09210795d8eb8e719c","status":"affected"},{"type":"git","introduced":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","fixed":"9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9","status":"affected"},{"type":"git","introduced":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","fixed":"07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453","status":"affected"},{"type":"git","introduced":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","fixed":"4a264b2614c73c96666e196bbabe0cead52bdba7","status":"affected"},{"type":"git","introduced":"e870456d8e7c8d57c059ea479b5aadbb55ff4c3a","fixed":"8eceab19eba9dcbfd2a0daec72e1bf48aa100170","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.14","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/960c56743988d8ce9ff9b5d770dbeb5f64823a23","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e345de2e69475430af85e09210795d8eb8e719c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9bf3e6ccfdcfe56ae3190d1ae987dacf1cfef4f9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07c6f6ffe29009426f0bd4d3cfbb6308b8ea8453","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4a264b2614c73c96666e196bbabe0cead52bdba7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8eceab19eba9dcbfd2a0daec72e1bf48aa100170","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T15:24:06.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31677","url":"https://www.cve.org/CVERecord?id=CVE-2026-31677","licence":"CVE Terms of Use","modified":"2026-11-06T15:32:22.438Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31677","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31677","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.590Z","epss":{"score":0.00162,"percentile":0.0565,"date":"2026-12-01T12:00:22.000Z"}}