GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2022-49997 (GCVE-0-2022-49997)

Vulnerability from cvelistv5 – Published: 2025-06-18 11:00 – Updated: 2026-08-05 08:57
VLAI
Title
net: lantiq_xrx200: restore buffer if memory allocation failed
Summary
In the Linux kernel, the following vulnerability has been resolved: net: lantiq_xrx200: restore buffer if memory allocation failed In a situation where memory allocation fails, an invalid buffer address is stored. When this descriptor is used again, the system panics in the build_skb() function when accessing memory.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7ea6cd16f1599c1eac6018751eadbc5fc736b99a , < 3ef2786e32d93e562cd40601248a14ae090de873 (git)
Affected: 7ea6cd16f1599c1eac6018751eadbc5fc736b99a , < c9c3b1775f80fa21f5bff874027d2ccb10f5d90c (git)
Affected: 217395c5ab15e92a4fd84fe77fab6b0b1bb4e456 (git)
Affected: 70c8418469fb22a679fe5015ebe60fe15011ea43 (git)
Affected: 5e006cdb9b759f604c4fc69b410aab37cf45f5b4 (git)
Affected: 5.4.128 , < 5.5 (semver)
Affected: 5.10.46 , < 5.11 (semver)
Affected: 5.12.13 , < 5.13 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 5.13
Unaffected: 0 , < 5.13 (semver)
Unaffected: 5.19.6 , ≤ 5.19.* (semver)
Unaffected: 6.0 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/lantiq_xrx200.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3ef2786e32d93e562cd40601248a14ae090de873",
              "status": "affected",
              "version": "7ea6cd16f1599c1eac6018751eadbc5fc736b99a",
              "versionType": "git"
            },
            {
              "lessThan": "c9c3b1775f80fa21f5bff874027d2ccb10f5d90c",
              "status": "affected",
              "version": "7ea6cd16f1599c1eac6018751eadbc5fc736b99a",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "217395c5ab15e92a4fd84fe77fab6b0b1bb4e456",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "70c8418469fb22a679fe5015ebe60fe15011ea43",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "5e006cdb9b759f604c4fc69b410aab37cf45f5b4",
              "versionType": "git"
            },
            {
              "lessThan": "5.5",
              "status": "affected",
              "version": "5.4.128",
              "versionType": "semver"
            },
            {
              "lessThan": "5.11",
              "status": "affected",
              "version": "5.10.46",
              "versionType": "semver"
            },
            {
              "lessThan": "5.13",
              "status": "affected",
              "version": "5.12.13",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/lantiq_xrx200.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.13"
            },
            {
              "lessThan": "5.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.6",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.4.128",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.10.46",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.12.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: lantiq_xrx200: restore buffer if memory allocation failed\n\nIn a situation where memory allocation fails, an invalid buffer address\nis stored. When this descriptor is used again, the system panics in the\nbuild_skb() function when accessing memory."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The vulnerable code is the Lantiq XRX200 Ethernet PMAC NAPI RX path, reached solely by frames arriving on the wire to the CPU port of VRX200 DSL gateways; a remote attacker\u2019s packets both induce RX buffer refill and later reuse the poisoned descriptor with no local access required.\nAC:L - An attacker can reliably create the triggering condition by flooding a memory-constrained embedded gateway until napi_alloc_frag fails, permanently storing NULL in that ring slot; any subsequent received frame that reuses the descriptor then crashes, with no uncontrolled race or layout dependency.\nPR:N - There is no authentication, capability check, or credential gate between frame arrival and xrx200_hw_receive()/xrx200_alloc_buf()\u2014reception runs in softirq/NAPI before any socket-level authorization, so unauthenticated network traffic suffices.\nUI:N - The RX path runs autonomously in NAPI/softirq whenever frames arrive; no local user must open a device, mount anything, or take any action for the NULL dereference to occur.\nS:U - The panic and its consequences stay within the host kernel\u2019s security authority on the affected gateway; there is no VM escape, IOMMU bypass, or other cross-boundary impact.\nC:N - build_skb(NULL) faults while constructing skb_shared_info at a low address derived from a NULL head and aborts without returning kernel memory, pointers, or freed-object contents to the attacker.\nI:N - This is a stored NULL software pointer followed by a NULL dereference in build_skb, not an attacker-controlled out-of-bounds/UAF write or type confusion; execution aborts before any control-flow hijack or data-modification primitive is obtained.\nA:H - The NULL pointer dereference occurs in softirq/NAPI context and panics the kernel as described in the fix, fully denying service on the device and remaining re-triggerable after reboot under the same traffic load."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:57:05.467Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3ef2786e32d93e562cd40601248a14ae090de873"
        },
        {
          "url": "https://git.kernel.org/stable/c/c9c3b1775f80fa21f5bff874027d2ccb10f5d90c"
        }
      ],
      "title": "net: lantiq_xrx200: restore buffer if memory allocation failed",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49997",
    "datePublished": "2025-06-18T11:00:57.072Z",
    "dateReserved": "2025-06-18T10:57:27.387Z",
    "dateUpdated": "2026-08-05T08:57:05.467Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49997",
      "date": "2026-09-17",
      "epss": "0.00406",
      "percentile": "0.34494"
    },
    "microsoft_vex": {
      "current_release_date": "2025-11-25T01:35:52.000Z",
      "cve": "CVE-2022-49997",
      "id": "msrc_CVE-2022-49997",
      "initial_release_date": "2025-06-02T00:00:00.000Z",
      "product_status:known_not_affected": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "net: lantiq_xrx200: restore buffer if memory allocation failed",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2022-49997.json",
      "version": "2"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49997\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:27.447\",\"lastModified\":\"2026-08-04T10:18:02.527\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: lantiq_xrx200: restore buffer if memory allocation failed\\n\\nIn a situation where memory allocation fails, an invalid buffer address\\nis stored. When this descriptor is used again, the system panics in the\\nbuild_skb() function when accessing memory.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: lantiq_xrx200: restaurar el b\u00fafer si falla la asignaci\u00f3n de memoria. En caso de fallo en la asignaci\u00f3n de memoria, se almacena una direcci\u00f3n de b\u00fafer no v\u00e1lida. Al volver a utilizar este descriptor, el sistema entra en p\u00e1nico en la funci\u00f3n build_skb() al acceder a la memoria.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/ethernet/lantiq_xrx200.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7ea6cd16f1599c1eac6018751eadbc5fc736b99a\",\"lessThan\":\"3ef2786e32d93e562cd40601248a14ae090de873\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7ea6cd16f1599c1eac6018751eadbc5fc736b99a\",\"lessThan\":\"c9c3b1775f80fa21f5bff874027d2ccb10f5d90c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"217395c5ab15e92a4fd84fe77fab6b0b1bb4e456\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"70c8418469fb22a679fe5015ebe60fe15011ea43\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5e006cdb9b759f604c4fc69b410aab37cf45f5b4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5.4.128\",\"lessThan\":\"5.5\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.10.46\",\"lessThan\":\"5.11\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.12.13\",\"lessThan\":\"5.13\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/ethernet/lantiq_xrx200.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.13\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.13\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.19.6\",\"lessThanOrEqual\":\"5.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.0\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.4.128\",\"versionEndExcluding\":\"5.5\",\"matchCriteriaId\":\"FF0E26CA-9CB9-477B-AA35-E7B31CEC27E9\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.10.46\",\"versionEndExcluding\":\"5.11\",\"matchCriteriaId\":\"743A8541-0DB4-4FAE-8258-3E2246FC59A9\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.12.13\",\"versionEndExcluding\":\"5.13\",\"matchCriteriaId\":\"345B3FFB-F301-4653-97D4-5E240FD16CC3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.13.1\",\"versionEndExcluding\":\"5.19.6\",\"matchCriteriaId\":\"D16E4756-4459-43FB-B78F-5618D846219F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:*\",\"matchCriteriaId\":\"8F0E7012-0BA3-4E6A-ADE9-57973CBDEE28\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.13:rc7:*:*:*:*:*:*\",\"matchCriteriaId\":\"F63101C7-E7A3-4C74-9CD5-B5FC5F53F5C8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"E8BD11A3-8643-49B6-BADE-5029A0117325\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"5F0AD220-F6A9-4012-8636-155F1B841FAD\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/3ef2786e32d93e562cd40601248a14ae090de873\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/c9c3b1775f80fa21f5bff874027d2ccb10f5d90c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:25:16+00:00",
      "cve": "CVE-2022-49997",
      "id": "CVE-2022-49997",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net: lantiq_xrx200: restore buffer if memory allocation failed",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49997.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…