CVE-2024-6760 ktrace(2) fails to detach when executing a setuid binary

High 7.5 Published Updated

Unprivileged users can trace setuid binaries to read sensitive files like the password database due to a kernel tracing logic error.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-6760?

CVE-2024-6760 is a high-severity vulnerability in Freebsd Freebsd, published on 11 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A logic bug in the code which disables kernel tracing for setuid programs meant that tracing was not disabled when it should have, allowing unprivileged users to trace and inspect the behavior of setuid programs.

The bug may be used by an unprivileged user to read the contents of files to which they would not otherwise have access, such as the local password database.

Weakness: CWE-862

Which versions are affected by CVE-2024-6760?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2024-6760?

No fix has been published for CVE-2024-6760 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-6760 being exploited?

There is no known exploitation of CVE-2024-6760 in the wild and no public exploit code.

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-2mcp-f38w-p5gf.

Is CVE-2024-6760 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free