CVE-2022-2959

Source
https://cve.org/CVERecord?id=CVE-2022-2959
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2959.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-2959
Aliases
Downstream
AZL (1)
DEBIAN (1)
OESA (1)
RHSA (6)
RLSA (2)
RXSA (1)
SUSE (4)
UBUNTU (1)
Related
Published
2022-08-25T00:00:00Z
Modified
2026-10-22T07:25:21Z
Summary
[none]
Details

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.

Database specific
{
    "cna_assigner": "redhat",
    "cwe_ids": [
        "CWE-667"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2959.json"
}
References

Affected packages

Git / github.com/torvalds/linux

Affected ranges

Type
GIT
Repo
https://github.com/torvalds/linux
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "Fixed in kernel 5.19"
                },
                {
                    "last_affected": "Fixed in kernel 5.19"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "fixed": "189b0ddc245139af81198d1a3637cac74f96e13a"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

Fixed in kernel 5.*
Fixed in kernel 5.19

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2959.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "174066485411310807633767307405195016336",
                "309718443487373006088657801040093541781",
                "123479116233543085081780815739459577278",
                "219093937791553154666348538088726851434",
                "90029672857136066760629739330987736359",
                "18249780466667027071239985674326118678",
                "315236170843468055357738141619650369471",
                "133798260095775449815513357711508429",
                "292045256548982531504756415888031002312",
                "11316084626467880180862910514852592675",
                "32716908462881132271490522257628879001",
                "63102687686438255015795313250901235866",
                "336956158813235096165466343490772399291",
                "195275778097828283066408464715133854309",
                "160936012957928571007406348863422389599",
                "108547412531501327174624029395224895126",
                "149086052647715813731355191140920504689",
                "115358309335790546788126174764657590819",
                "220349234493388545938441083825545796726",
                "325591897061353286025711401583154177594"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2022-2959-6bb5838b",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/torvalds/linux/commit/189b0ddc245139af81198d1a3637cac74f96e13a",
        "target": {
            "file": "fs/pipe.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "267508876685641151495730788666127975888",
            "length": 1019
        },
        "id": "CVE-2022-2959-c55dfa8b",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/torvalds/linux/commit/189b0ddc245139af81198d1a3637cac74f96e13a",
        "target": {
            "file": "fs/pipe.c",
            "function": "pipe_resize_ring"
        }
    }
]
vanir_signatures_modified
"2026-10-22T07:25:21Z"