
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47642 affects the Linux kernel's NVIDIA framebuffer driver (nvidiafb). The vulnerability was discovered in the nvidiasetupi2c_bus() function where a potential buffer overflow could occur due to the use of strcpy() without length checking when copying data to chan->adapter.name. The issue was identified through Coverity static analysis tool (CID 19036) (Kernel Git).
The vulnerability exists in the drivers/video/fbdev/nvidia/nvi2c.c file where the strcpy() function is used to copy a name parameter into a fixed-size buffer (chan->adapter.name) without checking the length. While the static scope of nvidiasetupi2cbus() suggests that buffer overflow might not occur in current call sites, the use of strcpy() poses a potential risk if the names used to identify the channel become longer in future modifications (Kernel Git).
While the immediate risk appears to be low due to the static scope of the affected function, a successful exploitation could potentially lead to buffer overflow, which might result in memory corruption or system crashes. The vulnerability has an elevated risk because the source argument is a parameter of the current function (Kernel Git).
The vulnerability has been patched by replacing strcpy() with strscpy(), which includes proper length checking. The fix ensures that the copy operation cannot overflow the destination buffer by checking against sizeof(chan->adapter.name) (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."