cve.bz

CVE-2026-31786 linux linux kernel: Out-of-bounds Write

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: Buffer overflow in drivers/xen/sys-hypervisor.c The build id returned by HYPERVISOR_xen_version(XENVER_build_id) is neither NUL terminated nor a string. The first causes a buffer overflow as sprintf in buildid_show will read and copy till it finds a NUL. 00000000 f4 91 51 f4 dd 38 9e 9d 65 47 52 eb 10 71 db 50 |..Q..8..eGR..q.P| 00000010 b9 a8 01 42 6f 2e 32 |...Bo.2| 00000017 So use a memcpy instead of sprintf to have the correct value: 00000000 f4 91 51 f4 dd 00 9e 9d 65 47 52 eb 10 71 db 50 |..Q.....eGR..q.P| 00000010 b9 a8 01 42 |...B| 00000014 (the above have a hack to embed a zero inside and check it's returned correctly). This is XSA-485 / CVE-2026-31786

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 9th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31786 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31786?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31786?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31786 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.13 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.254
Linux5.155.15.204
Linux6.16.1.170
Linux6.66.6.137
Linux6.126.12.85
Linux6.186.18.26
Linux7.07.0.3
Linuxlater releases7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.170-1DEBIAN-CVE-2026-31786
Debian13linux6.12.85-1DEBIAN-CVE-2026-31786
Debian14linux7.0.3-1DEBIAN-CVE-2026-31786
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2026-31786
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2026-31786
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux5.15.0-186.196UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-aws5.15.0-1112.119UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1061.64~22.04.1UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-azure, linux-azure-fde5.15.0-1117.126UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1063.71~22.04.1UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1062.69~22.04.1UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-gcp5.15.0-1112.122UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1064.72~22.04.1UBUNTU-CVE-2026-31786
Ubuntu22.04:LTSlinux-gke5.15.0-1108.114UBUNTU-CVE-2026-31786
76 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.134.1.el8_10RHSA-2026:26427
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.134.1.el8_10RHSA-2026:26427
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.134.1.rt7.475.el8_10RHSA-2026:26428
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.134.1.rt7.475.el8_10RHSA-2026:26428
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-687.13.1.el9_8RHSA-2026:24381
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-687.13.1.el9_8RHSA-2026:24381
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-687.13.1.el9_8RHSA-2026:24381
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-687.13.1.el9_8RHSA-2026:24381
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-687.13.1.el9_8RHSA-2026:24381
Red Hatenterprise_linux:10.2rv, perf, rtla and 87 more0:6.12.0-211.26.1.el10_2RHSA-2026:27288
openSUSETumbleweedkernel-source7.0.3-1.1openSUSE-SU-2026:10703-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.134.1.rt7.475.el8_10ALSA-2026:26428
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.134.1.el8_10ALSA-2026:26427
AlmaLinux9rv, perf, rtla and 71 more5.14.0-687.13.1.el9_8ALSA-2026:24381
AlmaLinux10rv, perf, rtla and 72 more6.12.0-211.26.1.el10_2ALSA-2026:27288
Rocky Linux8kernel0:4.18.0-553.134.1.el8_10RLSA-2026:26427
Rocky Linux10kernel0:6.12.0-211.26.1.el10_2RLSA-2026:27288
Alpaquita23linux-lts6.1.170-r0BELL-CVE-2026-31786
Alpaquita25linux-lts6.12.85-r0BELL-CVE-2026-31786
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2026-31786

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-211.26.1.el10_2Fixed 2026-06-20RHSA-2026:27288
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.134.1.rt7.475.el8_10Fixed 2026-06-16RHSA-2026:26428
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.134.1.el8_10Fixed 2026-06-16RHSA-2026:26427
Red Hat Enterprise Linux 9kernel-0:5.14.0-687.13.1.el9_8Fixed 2026-06-08RHSA-2026:24381
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelWill not fix
Red Hat Enterprise Linux 7kernel-rtAffected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31786.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON