CVE-2004-0186 Privilege escalation in n/a

High 7.2 Published Updated

Local attackers can gain root privileges by mounting a Samba share containing setuid programs, as the setuid bits are not cleared during the mount process.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2004-0186?

CVE-2004-0186 is a high-severity vulnerability in Linux kernel, published on 1 Sep 2004. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

smbmnt in Samba 2.x and 3.x on Linux 2.6, when installed setuid, allows local users to gain root privileges by mounting a Samba share that contains a setuid root program, whose setuid attributes are not cleared when the share is mounted.

Which versions are affected by CVE-2004-0186?

It affects 2 products.

Products include Linux kernel, Samba Samba.

How do I fix CVE-2004-0186?

Apply the vendor's patch.

Is CVE-2004-0186 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2004-0186 exists.

Public exploit code: 1 Exploit-DB entry.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2004-0186, DSA-463, GHSA-99qv-m5mw-g4v6.

Is CVE-2004-0186 in your software?

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

Check your SBOMs for free