(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.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Samba. Authentication is not required to exploit this vulnerability.
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.