Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-47642

HIGH 7.8EPSS 20%

video: fbdev: nvidiafb: Use strscpy() to prevent buffer overflow

Mitigation

  • Upgrade Linux to 37a1a2e6eeeb101285cd34e12e48a881524701aa or later.

Who should check

  • Anyone running Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47e5533adf118afaf06d25a3e2aaaab89371b1c5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 580e5d3815474b8349250c25c16416585a72c7fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 72dd5c46a152136712a55bf026a9aa8c1b12b60d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 055cdd2e7b992921424d4daaa285ced787fb205f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 08dff482012758935c185532b1ad7d584785a86e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6a5226e544ac043bb2d8dc1bfe8920d02282f7cd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 41baa86b6c802cdc6ab8ff2d46c083c9be93de81; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 37a1a2e6eeeb101285cd34e12e48a881524701aa
  • Anyone running Linux 2.6.12

Vulnerability facts

Affected
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47e5533adf118afaf06d25a3e2aaaab89371b1c5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 580e5d3815474b8349250c25c16416585a72c7fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 72dd5c46a152136712a55bf026a9aa8c1b12b60d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 055cdd2e7b992921424d4daaa285ced787fb205f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 08dff482012758935c185532b1ad7d584785a86e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6a5226e544ac043bb2d8dc1bfe8920d02282f7cd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 41baa86b6c802cdc6ab8ff2d46c083c9be93de81; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 37a1a2e6eeeb101285cd34e12e48a881524701aa; Linux 2.6.12
Fixed in
Linux 47e5533adf118afaf06d25a3e2aaaab89371b1c5, Linux 580e5d3815474b8349250c25c16416585a72c7fe, Linux 72dd5c46a152136712a55bf026a9aa8c1b12b60d, Linux 055cdd2e7b992921424d4daaa285ced787fb205f, Linux 08dff482012758935c185532b1ad7d584785a86e, Linux 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834, Linux 6a5226e544ac043bb2d8dc1bfe8920d02282f7cd, Linux 41baa86b6c802cdc6ab8ff2d46c083c9be93de81, Linux 37a1a2e6eeeb101285cd34e12e48a881524701aa
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
CWE
CWE-787
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47e5533adf118afaf06d25a3e2aaaab89371b1c5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 580e5d3815474b8349250c25c16416585a72c7fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 72dd5c46a152136712a55bf026a9aa8c1b12b60d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 055cdd2e7b992921424d4daaa285ced787fb205f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 08dff482012758935c185532b1ad7d584785a86e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6a5226e544ac043bb2d8dc1bfe8920d02282f7cd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 41baa86b6c802cdc6ab8ff2d46c083c9be93de81; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 37a1a2e6eeeb101285cd34e12e48a881524701aa—cvelist
Linux2.6.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-47642. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47642.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47e5533adf118afaf06d25a3e2aaaab89371b1c5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 580e5d3815474b8349250c25c16416585a72c7fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 72dd5c46a152136712a55bf026a9aa8c1b12b60d; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 47e5533adf118afaf06d25a3e2aaaab89371b1c5, Linux 580e5d3815474b8349250c25c16416585a72c7fe, Linux 72dd5c46a152136712a55bf026a9aa8c1b12b60d, Linux 055cdd2e7b992921424d4daaa285ced787fb205f, Linux 08dff482012758935c185532b1ad7d584785a86e, Linux 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834, Linux 6a522…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-47642 being exploited?

There is no confirmed exploitation: CVE-2021-47642 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-47642?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2021-47642?

Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 47e5533adf118afaf06d25a3e2aaaab89371b1c5; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 580e5d3815474b8349250c25c16416585a72c7fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 72dd5c46a152136712a55bf026a9aa8c1b12b60d; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 055cdd2e7b992921424d4daaa285ced787fb205f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 08dff482012758935c185532b1ad7d584785a86e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6a5226e544ac043bb2d8dc1bfe8920d02282f7cd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 41baa86b6c802cdc6ab8ff2d46c083c9be93de81; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 37a1a2e6eeeb101285cd34e12e48a881524701aa; Linux 2.6.12.

Is there a fix for CVE-2021-47642?

Yes. Fixed in Linux 47e5533adf118afaf06d25a3e2aaaab89371b1c5, Linux 580e5d3815474b8349250c25c16416585a72c7fe, Linux 72dd5c46a152136712a55bf026a9aa8c1b12b60d, Linux 055cdd2e7b992921424d4daaa285ced787fb205f, Linux 08dff482012758935c185532b1ad7d584785a86e, Linux 9ff2f7294ab0f011cd4d1b7dcd9a07d8fdf72834, Linux 6a5226e544ac043bb2d8dc1bfe8920d02282f7cd, Linux 41baa86b6c802cdc6ab8ff2d46c083c9be93de81, Linux 37a1a2e6eeeb101285cd34e12e48a881524701aa. Upgrade Linux to 37a1a2e6eeeb101285cd34e12e48a881524701aa or later.

How do I check if I'm affected by CVE-2021-47642?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors