{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2021-47159",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47159",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-03-25T09:16:13.815Z",
    "updatedAt": "2026-08-05T08:46:23.974Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "net: dsa: fix a crash if ->get_sset_count() fails",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: fix a crash if ->get_sset_count() fails\n\nIf ds->ops->get_sset_count() fails then it \"count\" is a negative error\ncode such as -EOPNOTSUPP.  Because \"i\" is an unsigned int, the negative\nerror code is type promoted to a very high value and the loop will\ncorrupt memory until the system crashes.\n\nFix this by checking for error codes and changing the type of \"i\" to\njust int.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "badf3ada60ab8f76f9488dc8f5c0c57f70682f5a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "0f2cb08c57edefb0e7b5045e0e3e9980a3d3aa37"
            },
            {
              "version": "badf3ada60ab8f76f9488dc8f5c0c57f70682f5a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ce5355f140a7987011388c7e30c4f8fbe180d3e8"
            },
            {
              "version": "badf3ada60ab8f76f9488dc8f5c0c57f70682f5a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "caff86f85512b8e0d9830e8b8b0dfe13c68ce5b6"
            },
            {
              "version": "badf3ada60ab8f76f9488dc8f5c0c57f70682f5a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7b22466648a4f8e3e94f57ca428d1531866d1373"
            },
            {
              "version": "badf3ada60ab8f76f9488dc8f5c0c57f70682f5a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a269333fa5c0c8e53c92b5a28a6076a28cde3e83"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.7",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.7"
            },
            {
              "version": "4.19.193",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.124",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.42",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.12.9",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.12.*"
            },
            {
              "version": "5.13",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}