CVE-2022-49289
published high CVSS 3.1 · 7.8uaccess: fix integer overflow on access_ok()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < e65d28d4e9bf90a35ba79c06661a572a38391dec · 7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < 99801e2f457824955da4aadaa035913a6dede03a · 7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8 · 7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < 222ca305c9fd39e5ed8104da25c09b2b79a516a8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.2 (affected) · 0 to < 3.2 (unaffected · semver) · 5.15.32 through 5.15.* (unaffected · semver) · 5.16.18 through 5.16.* (unaffected · semver) · 5.17.1 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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’s control is needed. PR: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. UI:N - Exploitation is fully attacker-driven via syscalls and does not require any action by another user. S:U - Impact is confined to the local kernel’s security authority (same-host privilege boundary); this is not a VM escape, IOMMU bypass, or other cross-authority break. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < e65d28d4e9bf90a35ba79c06661a572a38391dec (affected · git)7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < 99801e2f457824955da4aadaa035913a6dede03a (affected · git)7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < a1ad747fc1a0e06d1bf26b996ee8a56b5c8d02d8 (affected · git)7567746e1c0d66ac0ef8a9d8816ca694462c7370 to < 222ca305c9fd39e5ed8104da25c09b2b79a516a8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.2 (affected)0 to < 3.2 (unaffected · semver)5.15.32 through 5.15.* (unaffected · semver)5.16.18 through 5.16.* (unaffected · semver)5.17.1 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
uaccess: fix integer overflow on access_ok()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a0c361522cc7000faf63cb1f087b9cf83323befcd87016804d2f19baba784c68
- Ingested
- 23 Sep 2026, 08:04:12 UTC
- Source record
- Official CVE record