CVE-2022-49064

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49064
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49064.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49064
Downstream
Related
Published
2025-02-26T01:54:33Z
Modified
2025-10-21T08:42:33.429096Z
Summary
cachefiles: unmark inode in use in error path
Details

In the Linux kernel, the following vulnerability has been resolved:

cachefiles: unmark inode in use in error path

Unmark inode in use if error encountered. If the in-use flag leakage occurs in cachefilesopenfile(), Cachefiles will complain "Inode already in use" when later another cookie with the same index key is looked up.

If the in-use flag leakage occurs in cachefilescreatetmpfile(), though the "Inode already in use" warning won't be triggered, fix the leakage anyway.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1f08c925e7a38002bde509e66f6f891468848511
Fixed
b2055abafd3d4ee0376fb3eed5cae866316995a1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1f08c925e7a38002bde509e66f6f891468848511
Fixed
ea5dc046127e857a7873ae55fd57c866e9e86fb2

Affected versions

v5.*

v5.16
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.17.1
v5.17.2
v5.17.3
v5.18-rc1

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "id": "CVE-2022-49064-077ef8a0",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b2055abafd3d4ee0376fb3eed5cae866316995a1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "13466669914061077526370294691378522438",
                "25578665251789182351387924158103106280",
                "262809873660599247741351125985530719532",
                "186764270704839437187985248592952529421",
                "269190463212495077418613283388735144485",
                "136803205244070720851799673248678730339",
                "242576668919762182221492958493423066426",
                "183516114421200574895130979407709388223",
                "124173716419671670051567109371246376797",
                "303359639836637054113626291686464673745",
                "328180158090475878527525957404840076777",
                "71808193180098305291921161867937088422",
                "122667157913796324437460860124015292720",
                "48697396266686090423271165555646931096",
                "138489865891238362639660593861299337434",
                "214044417663561024256379136251301536465",
                "316310967521647536724681009778481921738",
                "99457120863600728304515943168328581708",
                "147096446859312145842437295536378265694",
                "225708563077762043856630600131809980826",
                "152754331232408248305837772143087720722",
                "228939404328249554345300043650349740712",
                "270856173526981917274524226143206931794",
                "21477978755203489284770735767828108610",
                "7843231888076253491272792720914137028",
                "56371124220794666946599672563933210146",
                "237622260283020649194765617961838014237",
                "189637853474739770976217545376253969906",
                "120340658381698134973232621062561338311",
                "244050365979467270017996473511337824853",
                "226238223171168186512382897739162518770",
                "261681091956505884786391714301590368150",
                "45495921715380276248695893423831506316",
                "255180121799447747173867609062609477327",
                "320073377129546439875085844608849214598"
            ]
        },
        "target": {
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Line",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-09043282",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea5dc046127e857a7873ae55fd57c866e9e86fb2",
        "digest": {
            "function_hash": "300212078631967630426186793229717295836",
            "length": 416.0
        },
        "target": {
            "function": "cachefiles_unmark_inode_in_use",
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-2155feb6",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea5dc046127e857a7873ae55fd57c866e9e86fb2",
        "digest": {
            "function_hash": "148355954833684291461184519802411730126",
            "length": 1809.0
        },
        "target": {
            "function": "cachefiles_create_tmpfile",
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-373d3cba",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea5dc046127e857a7873ae55fd57c866e9e86fb2",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "13466669914061077526370294691378522438",
                "25578665251789182351387924158103106280",
                "262809873660599247741351125985530719532",
                "186764270704839437187985248592952529421",
                "269190463212495077418613283388735144485",
                "136803205244070720851799673248678730339",
                "242576668919762182221492958493423066426",
                "183516114421200574895130979407709388223",
                "124173716419671670051567109371246376797",
                "303359639836637054113626291686464673745",
                "328180158090475878527525957404840076777",
                "71808193180098305291921161867937088422",
                "122667157913796324437460860124015292720",
                "48697396266686090423271165555646931096",
                "138489865891238362639660593861299337434",
                "214044417663561024256379136251301536465",
                "316310967521647536724681009778481921738",
                "99457120863600728304515943168328581708",
                "147096446859312145842437295536378265694",
                "225708563077762043856630600131809980826",
                "152754331232408248305837772143087720722",
                "228939404328249554345300043650349740712",
                "270856173526981917274524226143206931794",
                "21477978755203489284770735767828108610",
                "7843231888076253491272792720914137028",
                "56371124220794666946599672563933210146",
                "237622260283020649194765617961838014237",
                "189637853474739770976217545376253969906",
                "120340658381698134973232621062561338311",
                "244050365979467270017996473511337824853",
                "226238223171168186512382897739162518770",
                "261681091956505884786391714301590368150",
                "45495921715380276248695893423831506316",
                "255180121799447747173867609062609477327",
                "320073377129546439875085844608849214598"
            ]
        },
        "target": {
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Line",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-4448670d",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b2055abafd3d4ee0376fb3eed5cae866316995a1",
        "digest": {
            "function_hash": "14678590541649325394511435621724109797",
            "length": 1122.0
        },
        "target": {
            "function": "cachefiles_open_file",
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-5b05e8cf",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b2055abafd3d4ee0376fb3eed5cae866316995a1",
        "digest": {
            "function_hash": "148355954833684291461184519802411730126",
            "length": 1809.0
        },
        "target": {
            "function": "cachefiles_create_tmpfile",
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-c9c6be62",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b2055abafd3d4ee0376fb3eed5cae866316995a1",
        "digest": {
            "function_hash": "300212078631967630426186793229717295836",
            "length": 416.0
        },
        "target": {
            "function": "cachefiles_unmark_inode_in_use",
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "id": "CVE-2022-49064-ffbf6691",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea5dc046127e857a7873ae55fd57c866e9e86fb2",
        "digest": {
            "function_hash": "14678590541649325394511435621724109797",
            "length": 1122.0
        },
        "target": {
            "function": "cachefiles_open_file",
            "file": "fs/cachefiles/namei.c"
        },
        "signature_type": "Function",
        "signature_version": "v1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.4