Skip to content
DoS Advisory Intermediate CVE-2020-12049

GHSL-2020-057: dbus file descriptor leak (DoS) - CVE-2020-12049

D-Bus has a file descriptor leak in its handling of truncated control messages, which can lead to denial of service when the dbus-daemon runs out of file descriptors. An unprivileged local attacker can exploit this to make the system unusable for all users.

kevinbackhouse Follow

Originally disclosed on GitHub Security Lab

D-Bus has a file descriptor leak, which can lead to denial of service when the dbus-daemon runs out of file descriptors. An unprivileged local attacker can use this to attack the system dbus-daemon, leading to denial of service for all users of the machine.

kevinbackhouse, on GitHub Security Lab

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 the error handling for truncated control messages fails to close any file descriptors that were already received before the truncation.

Impact

An unprivileged local attacker can cause a denial of service, making the system unusable for all users, for example preventing login.

What the attacker needed

Local access to the system; unprivileged user account

The fix

The issue was fixed according to the disclosure timeline.

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.

D-Bus is a system that lets programs on the same computer talk to each other. A file descriptor is a small number the operating system uses to track open files or connections; if a program leaks them, it eventually runs out and cannot open new ones. Here, a local attacker can send special messages that cause D-Bus to leak file descriptors until it stops working, blocking other users from logging in.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by kevinbackhouse

View all

47 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.