CVE-2021-47642
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-modules-partner
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • python3-perf
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management