CVE-2021-47642
Last modified
CVE-2021-47642 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: video: fbdev: nvidiafb: Use strscpy() to prevent buffer overflow Coverity complains of a possible buffer overflow. However, given the 'static' scope of nvidia_setup_i2c_bus() it looks like that can't happen after examiniing the call sites. CID 19036 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW) 1. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: video: fbdev: nvidiafb: Use strscpy() to prevent buffer overflow Coverity complains of a possible buffer overflow. However, given the 'static' scope of nvidia_setup_i2c_bus() it looks like that can't happen after examiniing the call sites. CID 19036 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW) 1. fixed_size_dest: You might overrun the 48-character fixed-size string chan->adapter.name by copying name without checking the length. 2. parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. 89 strcpy(chan->adapter.name, name); Fix this warning by using strscpy() which will silence the warning and prevent any future buffer overflows should the names used to identify the channel become much longer.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 4.9.311 |
| Linux | Linux Kernel | >= 4.10, < 4.14.276 |
| Linux | Linux Kernel | >= 4.15, < 4.19.238 |
| Linux | Linux Kernel | >= 4.20, < 5.4.189 |
| Linux | Linux Kernel | >= 5.5, < 5.10.110 |
| Linux | Linux Kernel | >= 5.11, < 5.15.33 |
| Linux | Linux Kernel | >= 5.16, < 5.16.19 |
| Linux | Linux Kernel | >= 5.17, < 5.17.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47642?
How severe is CVE-2021-47642?
How do I fix CVE-2021-47642?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47636In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2021-47637In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47638In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47639In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47640In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47641In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47643In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47644In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47645In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47646In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47647In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47648In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2021-47642?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
