cve.bz

CVE-2022-2959 linux linux kernel: Race Condition

7.0 highEPSS 0.4%Fix available

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

On this page
A race condition was found in the Linux kernel's watch queue due to a missing lock in pipe_resize_ring(). The specific flaw exists within the handling of pipe buffers. The issue results from the lack of proper locking when performing operations on an object. This flaw allows a local user to crash the system or escalate their privileges on the system.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-667 Improper Locking
OWASP Top 10
A06:2025 Insecure Design
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-2022-2959 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-2959?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-2959?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-2022-2959 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.

Badge for a README or a site

CVE-2022-2959

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-2959](https://cve.bz/cve/badge/CVE-2022-2959.svg)](https://cve.bz/cve/CVE-2022-2959)

HTML:

<a href="https://cve.bz/cve/CVE-2022-2959"><img src="https://cve.bz/cve/badge/CVE-2022-2959.svg" alt="CVE-2022-2959"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 5.8 before 5.10.120
linux:linux_kernelfrom 5.11 before 5.15.45
linux:linux_kernelfrom 5.16 before 5.17.13
linux:linux_kernelfrom 5.18 before 5.18.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.18.2-1DEBIAN-CVE-2022-2959
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-2959
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2022-2959
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1019.23~20.04.1UBUNTU-CVE-2022-2959 USN-5594-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1019.24~20.04.1UBUNTU-CVE-2022-2959 USN-5594-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1017.23~20.04.2UBUNTU-CVE-2022-2959 USN-5594-1
Ubuntu20.04:LTSlinux-gke-5.155.15.0-1015.18~20.04.1UBUNTU-CVE-2022-2959 USN-5594-1
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-48.54~20.04.1UBUNTU-CVE-2022-2959 USN-5623-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1015.20~20.04.2UBUNTU-CVE-2022-2959
Ubuntu20.04:LTSlinux-oem-5.145.14.0-1044.49UBUNTU-CVE-2022-2959
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1017.22~20.04.1UBUNTU-CVE-2022-2959
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 20 moreno fix listedUBUNTU-CVE-2022-2959
Ubuntu20.04:LTSlinux-riscv-5.155.15.0-1018.21~20.04.1UBUNTU-CVE-2022-2959
18 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-162.12.1.el9_1RHSA-2023:0334
Red Hatenterprise_linux:9::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-162.12.1.el9_1RHSA-2023:0334
Red Hatenterprise_linux:9::baseoskpatch-patch-5_14_0-162_6_1, kpatch-patch-5_14_0-162_6_1-debuginfo, kpatch-patch-5_14_0-162_6_1-debugsource0:1-1.el9_1RHSA-2023:0348
Red Hatenterprise_linux:9::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 9 more0:5.14.0-162.12.1.el9_1RHSA-2023:0334
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:5.14.0-162.12.1.rt21.175.el9_1RHSA-2023:0300
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:5.14.0-162.12.1.rt21.175.el9_1RHSA-2023:0300
Red Hatrhel_eus:9.0::appstreamperf, kernel-doc, kernel-devel and 16 more0:5.14.0-70.36.1.el9_0RHSA-2022:8973
Red Hatrhel_eus:9.0::baseoskernel, bpftool, kernel-core and 25 more0:5.14.0-70.36.1.el9_0RHSA-2022:8973
Red Hatrhel_eus:9.0::baseoskpatch-patch-5_14_0-70_13_1, kpatch-patch-5_14_0-70_13_1-debuginfo, kpatch-patch-5_14_0-70_13_1-debugsource0:1-5.el9_0RHSA-2022:9082
Red Hatrhel_eus:9.0::baseoskpatch-patch-5_14_0-70_17_1, kpatch-patch-5_14_0-70_22_1, kpatch-patch-5_14_0-70_17_1-debuginfo and 3 more0:1-4.el9_0RHSA-2022:9082
Red Hatrhel_eus:9.0::baseoskpatch-patch-5_14_0-70_26_1, kpatch-patch-5_14_0-70_26_1-debuginfo, kpatch-patch-5_14_0-70_26_1-debugsource0:1-3.el9_0RHSA-2022:9082
Red Hatrhel_eus:9.0::baseoskpatch-patch-5_14_0-70_30_1, kpatch-patch-5_14_0-70_30_1-debuginfo, kpatch-patch-5_14_0-70_30_1-debugsource0:1-1.el9_0RHSA-2022:9082
3 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Module for Legacy 15 SP4 and 1 morekernel-default5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4-RT_Update_11-150400.1.3.1SUSE-SU-2022:4617-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_08-150400.4.21.1SUSE-SU-2022:4113-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_31-150400.9.3.2SUSE-SU-2022:3293-1
SUSELinux Enterprise Module for Basesystem 15 SP4kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
SUSELinux Enterprise Module for Basesystem 15 SP4kernel-default-base5.14.21-150400.24.21.2.150400.24.7.2SUSE-SU-2022:3293-1
SUSELinux Enterprise Module for Development Tools 15 SP4kernel-docs5.14.21-150400.24.21.3SUSE-SU-2022:3293-1
SUSELinux Enterprise Module for Development Tools 15 SP4kernel-source, kernel-obs-build5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
SUSELinux Enterprise Module for Development Tools 15 SP4kernel-syms5.14.21-150400.24.21.1SUSE-SU-2022:3293-1
SUSELinux Enterprise Module for Public Cloud 15 SP4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.13.1SUSE-SU-2022:3288-1
SUSEReal Time Module 15 SP4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.5.1SUSE-SU-2022:4617-1
openSUSELeap 15.4dtb-aarch64, kernel-syms, kernel-obs-qa5.14.21-150400.24.21.1SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-64kb, kernel-debug, kernel-source and 4 more5.14.21-150400.24.21.2SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.13.1SUSE-SU-2022:3288-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.21.2.150400.24.7.2SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-docs5.14.21-150400.24.21.3SUSE-SU-2022:3293-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.5.1SUSE-SU-2022:4617-1
AlmaLinux9kernel-rt, kernel-rt-kvm, kernel-rt-core and 9 more5.14.0-162.12.1.rt21.175.el9_1ALSA-2023:0300
AlmaLinux9perf, kernel, bpftool and 24 more5.14.0-162.12.1.el9_1ALSA-2023:0334
Rocky Linux9kernel0:5.14.0-162.12.1.el9_1.0.2RLSA-2023:0334
Rocky Linux9kernel0:5.14.0-162.12.1.el9_1.cloud.0.1RXSA-2023:0334
Rocky Linux9kernel-rt0:5.14.0-162.12.1.rt21.175.el9_1RLSA-2023:0300
Azure Linux2kernel5.15.67.1-4AZL-10692

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; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Enterprise Linux 6, 7 and 8 are not affected by this issue as they did not include support for general notification queue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-162.12.1.el9_1Fixed 2023-01-23RHSA-2023:0334
Red Hat Enterprise Linux 9kernel-rt-0:5.14.0-162.12.1.rt21.175.el9_1Fixed 2023-01-23RHSA-2023:0300
Red Hat Enterprise Linux 9kpatch-patchFixed 2023-01-23RHSA-2023:0348
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-0:5.14.0-70.36.1.el9_0Fixed 2022-12-13RHSA-2022:8973
Red Hat Enterprise Linux 9.0 Extended Update Supportkernel-rt-0:5.14.0-70.36.1.rt21.108.el9_0Fixed 2022-12-13RHSA-2022:8974
Red Hat Enterprise Linux 9.0 Extended Update Supportkpatch-patchFixed 2022-12-15RHSA-2022:9082
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected

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-2022-2959.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
  • CAPEC-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON