Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 845039 (CVE-2022-30767)

Summary: dev-embedded/u-boot-tools: unbounded memcpy in nfs
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: CONFIRMED ---    
Severity: normal CC: embedded, jsmolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/u-boot/u-boot/commit/5d14ee4e53a81055d34ba280cb8fd90330f22a96#commitcomment-73351544
Whiteboard: B2 [upstream]
Package list:
Runtime testing required: ---

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-05-16 16:57:14 UTC
CVE-2022-30767 (https://lists.denx.de/pipermail/u-boot/2022-May/483952.html):
https://securitylab.github.com/research/uboot-rce-nfs-vulnerability/

nfs_lookup_reply in net/nfs.c in Das U-Boot through 2022.04 (and through 2022.07-rc2) has an unbounded memcpy with a failed length check, leading to a buffer overflow. NOTE: this issue exists because of an incorrect fix for CVE-2019-14196.

It seems these references are duplicated from CVE-2019-14192 but with
the new email and a new comment on the commit. From that comment:

"Xeno Kovah (@XenoKovah) found this bypass and is presented as a case
study in the course "Vulnerabilities 1001 - OST2". After dynamically
verifying the bypass, I am merely reporting the discovery (tested with
some dirty code that I hope would never see the sun's light)."

Somewhat troubling that this kind of thing would be exploited in the
wild in public and not be reported upstream properly.