Skip to content
Race condition Advisory Advanced CVE-2020-7460

FreeBSD Kernel sendmsg System Call Time-Of-Check Time-Of-Use Privilege Escalation Vulnerability

The FreeBSD kernel's sendmsg system call mishandled arguments due to missing locking, creating a time-of-check time-of-use race. A local attacker with low-privileged code execution could exploit this to escalate privileges and run code in the kernel context.

m00nbsd Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows local attackers to escalate privileges on affected installations of FreeBSD Kernel. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

m00nbsd, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing lock allowed a shared object to be modified between validation and use in the sendmsg system call.

Impact

A local attacker who can already run low-privileged code could escalate to kernel-level code execution.

What the attacker needed

Ability to execute low-privileged code locally

The fix

FreeBSD issued an update to correct the vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A system call is how a program asks the operating system kernel to do something, like send data over a network. Here, the kernel checked something about the request and then used it later, but another thread could change it in between, which is a race condition. Because the kernel trusted the changed value, a local user could gain the highest level of control over the machine.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by m00nbsd

View all

3 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.