CVE-2026-43280
published high CVSS 3.1 · 7.1drm/xe: Add bounds check on pat_index to prevent OOB kernel read in madvise
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxada7486c5668db542a7d361268df931aca5b726a to < ffba51100ff61792fefbae11ca38ac1987a818dd · ada7486c5668db542a7d361268df931aca5b726a to < 79f52655567a6471ff3d0d6325ede91bb14461f4 · ada7486c5668db542a7d361268df931aca5b726a to < fbbe32618e97eff81577a01eb7d9adcd64a216d7 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.16 through 6.18.* (unaffected · semver) · 6.19.6 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | 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: drm/xe: Add bounds check on pat_index to prevent OOB kernel read in madvise When user provides a bogus pat_index value through the madvise IOCTL, the xe_pat_index_get_coh_mode() function performs an array access without validating bounds. This allows a malicious user to trigger an out-of-bounds kernel read from the xe->pat.table array. The vulnerability exists because the validation in madvise_args_are_sane() directly calls xe_pat_index_get_coh_mode(xe, args->pat_index.val) without first checking if pat_index is within [0, xe->pat.n_entries). Although xe_pat_index_get_coh_mode() has a WARN_ON to catch this in debug builds, it still performs the unsafe array access in production kernels. v2(Matthew Auld) - Using array_index_nospec() to mitigate spectre attacks when the value is used v3(Matthew Auld) - Put the declarations at the start of the block (cherry picked from commit 944a3329b05510d55c69c2ef455136e2fc02de29)
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.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The vulnerable path is a local DRM xe ioctl, reached by opening an xe DRM render device and issuing DRM_IOCTL_XE_VM_CREATE followed by DRM_IOCTL_XE_MADVISE. It is not reachable from network, adjacent, or physical input. AC:L - Exploitation requires only attacker-controlled ioctl arguments with type DRM_XE_MEM_RANGE_ATTR_PAT and an out-of-range pat_index; no race or hard-to-control state is required. A valid VM id can be created by the same unprivileged caller. PR:L - The ioctl is registered with DRM_RENDER_ALLOW and no DRM_AUTH, DRM_MASTER, or DRM_ROOT_ONLY gate, so a normal local user with access to the render node can reach it. It does not require real root or capabilities. UI:N - No victim action is needed after the attacker has local execution and device-node access. The attacker directly opens the DRM node and submits the ioctl. S:U - The bug is in the host kernel DRM driver and impacts kernel resources under the same security authority. It is not a VM escape, IOMMU bypass, or other cross-scope boundary violation. C:H - The flaw is an attacker-controlled out-of-bounds kernel read from xe->pat.table via xe_pat_index_get_coh_mode(), with a u16 index range and no bounds check before the fix. Following the higher-severity rule for OOB kernel reads, this is scored as high confidentiality impact. I:N - The immediate primitive is an out-of-bounds read and validation oracle; the investigated path does not provide a direct kernel write or memory corruption primitive. A bad PAT value may be stored only if the OOB read happens to pass validation, but that does not establish arbitrary modification of protected data. A:H - Out-of-range pat_index values trigger WARN_ON in xe_pat_index_get_coh_mode(), and in hardened or panic_on_warn deployments this can panic the kernel. The same local user can repeatedly trigger the condition, so high availability impact is the higher defensible choice.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ada7486c5668db542a7d361268df931aca5b726a to < ffba51100ff61792fefbae11ca38ac1987a818dd (affected · git)ada7486c5668db542a7d361268df931aca5b726a to < 79f52655567a6471ff3d0d6325ede91bb14461f4 (affected · git)ada7486c5668db542a7d361268df931aca5b726a to < fbbe32618e97eff81577a01eb7d9adcd64a216d7 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.16 through 6.18.* (unaffected · semver)6.19.6 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-125 CWE-125 Out-of-bounds Read
References
3Provider assertions
2Linux · cna
drm/xe: Add bounds check on pat_index to prevent OOB kernel read in madvise
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- de5b8bd0dd163276b82ec7986e27dde9ea4cbdab224c8cd4e3ffd3a42b6421ad
- Ingested
- 19 Oct 2026, 19:18:18 UTC
- Source record
- Official CVE record