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

CVE-2022-49289 (GCVE-0-2022-49289)

Vulnerability from cvelistv5 – Published: 2025-02-26 01:56 – Updated: 2026-08-05 08:54
VLAI
Title
uaccess: fix integer overflow on access_ok()
Summary
In the Linux kernel, the following vulnerability has been resolved: uaccess: fix integer overflow on access_ok() Three architectures check the end of a user access against the address limit without taking a possible overflow into account. Passing a negative length or another overflow in here returns success when it should not. Use the most common correct implementation here, which optimizes for a constant 'size' argument, and turns the common case into a single comparison.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7567746e1c0d66ac0ef8a9d8816ca694462c7370 , < e65d28d4e9bf90a35ba79c06661a572a38391dec (git)
Affected: 7567746e1c0d66ac0ef8a9d8816ca694462c7370 , < 99801e2f457824955da4aadaa035913a6dede03a (git)
Affected: 7567746e1c0d66ac0ef8a9d8816ca694462c7370 , < a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8 (git)
Affected: 7567746e1c0d66ac0ef8a9d8816ca694462c7370 , < 222ca305c9fd39e5ed8104da25c09b2b79a516a8 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.2
Unaffected: 0 , < 3.2 (semver)
Unaffected: 5.15.32 , ≤ 5.15.* (semver)
Unaffected: 5.16.18 , ≤ 5.16.* (semver)
Unaffected: 5.17.1 , ≤ 5.17.* (semver)
Unaffected: 5.18 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/csky/include/asm/uaccess.h",
            "arch/hexagon/include/asm/uaccess.h",
            "arch/microblaze/include/asm/uaccess.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e65d28d4e9bf90a35ba79c06661a572a38391dec",
              "status": "affected",
              "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
              "versionType": "git"
            },
            {
              "lessThan": "99801e2f457824955da4aadaa035913a6dede03a",
              "status": "affected",
              "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
              "versionType": "git"
            },
            {
              "lessThan": "a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8",
              "status": "affected",
              "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
              "versionType": "git"
            },
            {
              "lessThan": "222ca305c9fd39e5ed8104da25c09b2b79a516a8",
              "status": "affected",
              "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/csky/include/asm/uaccess.h",
            "arch/hexagon/include/asm/uaccess.h",
            "arch/microblaze/include/asm/uaccess.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.2"
            },
            {
              "lessThan": "3.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.32",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.16.*",
              "status": "unaffected",
              "version": "5.16.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.1",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.32",
                  "versionStartIncluding": "3.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16.18",
                  "versionStartIncluding": "3.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.1",
                  "versionStartIncluding": "3.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18",
                  "versionStartIncluding": "3.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nuaccess: fix integer overflow on access_ok()\n\nThree architectures check the end of a user access against the\naddress limit without taking a possible overflow into account.\nPassing a negative length or another overflow in here returns\nsuccess when it should not.\n\nUse the most common correct implementation here, which optimizes\nfor a constant \u0027size\u0027 argument, and turns the common case into a\nsingle comparison."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is in arch-specific access_ok() used by syscall copy_to/from_user paths; an attacker needs local ability to invoke syscalls with crafted user pointers and lengths on csky, hexagon, or microblaze.\nAC:L - Triggering only requires passing an address and size that cause addr+size to wrap; no race, probabilistic memory layout, or other condition outside the attacker\u2019s control is needed.\nPR:L - Any unprivileged local user can reach access_ok() through ordinary read/write/ioctl and related syscalls that validate user buffers; no root or special capabilities are required.\nUI:N - Exploitation is fully attacker-driven via syscalls and does not require any action by another user.\nS:U - Impact is confined to the local kernel\u2019s security authority (same-host privilege boundary); this is not a VM escape, IOMMU bypass, or other cross-authority break.\nC:H - A successful access_ok() bypass lets copy_from_user read kernel addresses as if they were userspace, enabling arbitrary kernel memory disclosure when that data is returned to the attacker.\nI:H - The same bypass lets copy_to_user/clear_user write into kernel virtual addresses, yielding a kernel memory corruption / write primitive usable for control-flow hijacking.\nA:H - Walking into invalid or sensitive kernel mappings via the unchecked copy path can oops/panic the kernel, and huge overflowing lengths can also produce fatal DoS behavior."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:54:37.099Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e65d28d4e9bf90a35ba79c06661a572a38391dec"
        },
        {
          "url": "https://git.kernel.org/stable/c/99801e2f457824955da4aadaa035913a6dede03a"
        },
        {
          "url": "https://git.kernel.org/stable/c/a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8"
        },
        {
          "url": "https://git.kernel.org/stable/c/222ca305c9fd39e5ed8104da25c09b2b79a516a8"
        }
      ],
      "title": "uaccess: fix integer overflow on access_ok()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49289",
    "datePublished": "2025-02-26T01:56:27.026Z",
    "dateReserved": "2025-02-26T01:49:39.302Z",
    "dateUpdated": "2026-08-05T08:54:37.099Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49289",
      "date": "2026-09-19",
      "epss": "0.0027",
      "percentile": "0.19415"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "arch/csky/include/asm/uaccess.h",
                  "arch/hexagon/include/asm/uaccess.h",
                  "arch/microblaze/include/asm/uaccess.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "e65d28d4e9bf90a35ba79c06661a572a38391dec",
                    "status": "affected",
                    "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "99801e2f457824955da4aadaa035913a6dede03a",
                    "status": "affected",
                    "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8",
                    "status": "affected",
                    "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "222ca305c9fd39e5ed8104da25c09b2b79a516a8",
                    "status": "affected",
                    "version": "7567746e1c0d66ac0ef8a9d8816ca694462c7370",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "arch/csky/include/asm/uaccess.h",
                  "arch/hexagon/include/asm/uaccess.h",
                  "arch/microblaze/include/asm/uaccess.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.2"
                  },
                  {
                    "lessThan": "3.2",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.32",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.16.*",
                    "status": "unaffected",
                    "version": "5.16.18",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.17.*",
                    "status": "unaffected",
                    "version": "5.17.1",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "5.18",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "00480024-DE11-483F-9FC2-2A54FC54891F",
                    "versionEndExcluding": "5.15.32",
                    "versionStartIncluding": "3.2",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "C86410A0-E312-4F41-93E9-929EAFB31757",
                    "versionEndExcluding": "5.16.18",
                    "versionStartIncluding": "5.16",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:5.17:*:*:*:*:*:*:*",
                    "matchCriteriaId": "35799228-BFF6-4426-AD3B-F452EA83320F",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nuaccess: fix integer overflow on access_ok()\n\nThree architectures check the end of a user access against the\naddress limit without taking a possible overflow into account.\nPassing a negative length or another overflow in here returns\nsuccess when it should not.\n\nUse the most common correct implementation here, which optimizes\nfor a constant \u0027size\u0027 argument, and turns the common case into a\nsingle comparison."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: uaccess: fix entire entiret overflow on access_ok() Tres arquitecturas comprueban el final de un acceso de usuario contra el l\u00edmite de direcciones sin tener en cuenta un posible desbordamiento. Pasar una longitud negativa u otro desbordamiento aqu\u00ed devuelve \u00e9xito cuando no deber\u00eda. Utilice la implementaci\u00f3n correcta m\u00e1s com\u00fan aqu\u00ed, que optimiza para un argumento de \"tama\u00f1o\" constante y convierte el caso com\u00fan en una \u00fanica comparaci\u00f3n."
          }
        ],
        "id": "CVE-2022-49289",
        "lastModified": "2026-08-04T10:17:43.170",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            },
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.1,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.2,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2025-02-26T07:01:05.757",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/222ca305c9fd39e5ed8104da25c09b2b79a516a8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/99801e2f457824955da4aadaa035913a6dede03a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/e65d28d4e9bf90a35ba79c06661a572a38391dec"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-190"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:23:17+00:00",
      "cve": "CVE-2022-49289",
      "id": "CVE-2022-49289",
      "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: uaccess: fix integer overflow on access_ok()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49289.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-05T17:06:54Z",
      "cve": "CVE-2022-49289",
      "id": "CVE-2022-49289",
      "initial_release_date": "2025-02-27T03:09:22Z",
      "product_status:known_not_affected": "461",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49289",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49289.json",
      "version": "17"
    }
  }
}



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…