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-47159

HIGH 7.8EPSS 10%

net: dsa: fix a crash if ->get_sset_count() fails

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < ce5355f140a7987011388c7e30c4f8fbe180d3e8; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 7b22466648a4f8e3e94f57ca428d1531866d1373; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < a269333fa5c0c8e53c92b5a28a6076a28cde3e83
  • Anyone running Linux 4.7

Vulnerability facts

Affected
Linux >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < ce5355f140a7987011388c7e30c4f8fbe180d3e8; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 7b22466648a4f8e3e94f57ca428d1531866d1373; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < a269333fa5c0c8e53c92b5a28a6076a28cde3e83; Linux 4.7
Fixed in
Linux 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37, Linux 7b22466648a4f8e3e94f57ca428d1531866d1373
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, CNA)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.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
CWE
CWE-835
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: net: dsa: fix a crash if ->get_sset_count() fails If ds->ops->get_sset_count() fails then it "count" is a negative error code such as -EOPNOTSUPP. Because "i" is an unsigned int, the negative error code is type promoted to a very high value and the loop will corrupt memory until the system crashes. Fix this by checking for error codes and changing the type of "i" to just int.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < ce5355f140a7987011388c7e30c4f8fbe180d3e8; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 7b22466648a4f8e3e94f57ca428d1531866d1373; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < a269333fa5c0c8e53c92b5a28a6076a28cde3e83—cvelist
Linux4.7—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-47159. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47159.md
Affected: Linux >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < ce5355f140a7987011388c7e30c4f8fbe180d3e8; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6; >= badf3ada60ab8f76f9488dc…
Fixed in: Linux 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37, Linux 7b22466648a4f8e3e94f57ca428d1531866d1373

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-47159 being exploited?

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

How serious is CVE-2021-47159?

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

Which versions are affected by CVE-2021-47159?

Linux >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < ce5355f140a7987011388c7e30c4f8fbe180d3e8; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < 7b22466648a4f8e3e94f57ca428d1531866d1373; >= badf3ada60ab8f76f9488dc8f5c0c57f70682f5a, < a269333fa5c0c8e53c92b5a28a6076a28cde3e83; Linux 4.7.

Is there a fix for CVE-2021-47159?

Yes. Fixed in Linux 0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37, Linux 7b22466648a4f8e3e94f57ca428d1531866d1373. No fix listed yet: follow the vendor advisory.

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

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