Skip to content
Info disclosure Advisory Advanced CVE-2021-44142

(Pwn2Own) Samba fruit_pread Out-Of-Bounds Read Information Disclosure Vulnerability

The fruit_pread method in Samba fails to validate user-supplied data, leading to an out-of-bounds read. A remote unauthenticated attacker could disclose sensitive information and potentially execute arbitrary code as root when combined with other vulnerabilities.

Nguyễn Hoàng Thạch Follow

Originally disclosed on Zero Day Initiative

Medium 5.3 View original

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Samba. Authentication is not required to exploit this vulnerability.

Nguyen Hoang Thach (https://twitter.com/hi_im_d4rkn3ss) and Billy Jheng Bing-Jhong (https://twitter.com/st424204), 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, the fruit_pread method does not properly validate user-supplied length or offset values, causing an out-of-bounds read.

Impact

A remote unauthenticated attacker could disclose sensitive information and, in conjunction with other vulnerabilities, execute arbitrary code as root.

What the attacker needed

None

The fix

Samba has issued an update to correct this 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.

Samba is file-sharing software. A function called fruit_pread reads data without checking if the requested length is valid, so it can read past the end of a buffer. This lets an attacker see memory contents and possibly run code as the root user.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Nguyễn Hoàng Thạch

View all

1 more disclosed report, 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.