CVE-2025-38365

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38365
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38365.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38365
Downstream
Related
Published
2025-07-25T12:47:35Z
Modified
2025-10-18T04:11:46.983281Z
Summary
btrfs: fix a race between renames and directory logging
Details

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

btrfs: fix a race between renames and directory logging

We have a race between a rename and directory inode logging that if it happens and we crash/power fail before the rename completes, the next time the filesystem is mounted, the log replay code will end up deleting the file that was being renamed.

This is best explained following a step by step analysis of an interleaving of steps that lead into this situation.

Consider the initial conditions:

1) We are at transaction N;

2) We have directories A and B created in a past transaction (< N);

3) We have inode X corresponding to a file that has 2 hardlinks, one in directory A and the other in directory B, so we'll name them as "A/foolink1" and "B/foolink2". Both hard links were persisted in a past transaction (< N);

4) We have inode Y corresponding to a file that as a single hard link and is located in directory A, we'll name it as "A/bar". This file was also persisted in a past transaction (< N).

The steps leading to a file loss are the following and for all of them we are under transaction N:

1) Link "A/foolink1" is removed, so inode's X lastunlinktrans field is updated to N, through btrfsunlink() -> btrfsrecordunlink_dir();

2) Task A starts a rename for inode Y, with the goal of renaming from "A/bar" to "A/baz", so we enter btrfs_rename();

3) Task A inserts the new BTRFSINODEREFKEY for inode Y by calling btrfsinsertinoderef();

4) Because the rename happens in the same directory, we don't set the lastunlinktrans field of directoty A's inode to the current transaction id, that is, we don't cal btrfsrecordunlink_dir();

5) Task A then removes the entries from directory A (BTRFSDIRITEMKEY and BTRFSDIRINDEXKEY items) when calling _btrfsunlink_inode() (actually the dir index item is added as a delayed item, but the effect is the same);

6) Now before task A adds the new entry "A/baz" to directory A by calling btrfsaddlink(), another task, task B is logging inode X;

7) Task B starts a fsync of inode X and after logging inode X, at btrfsloginodeparent() it calls btrfslogallparents(), since inode X has a lastunlinktrans value of N, set at in step 1;

8) At btrfslogallparents() we search for all parent directories of inode X using the commit root, so we find directories A and B and log them. Bu when logging direct A, we don't have a dir index item for inode Y anymore, neither the old name "A/bar" nor for the new name "A/baz" since the rename has deleted the old name but has not yet inserted the new name - task A hasn't called yet btrfsadd_link() to do that.

Note that logging directory A doesn't fallback to a transaction
commit because its last_unlink_trans has a lower value than the
current transaction's id (see step 4);

9) Task B finishes logging directories A and B and gets back to btrfssyncfile() where it calls btrfssynclog() to persist the log tree;

10) Task B successfully persisted the log tree, btrfssynclog() completed with success, and a power failure happened.

We have a log tree without any directory entry for inode Y, so the
log replay code deletes the entry for inode Y, name "A/bar", from the
subvolume tree since it doesn't exist in the log tree and the log
tree is authorative for its index (we logged a BTRFS_DIR_LOG_INDEX_KEY
item that covers the index range for the dentry that corresponds to
"A/bar").

Since there's no other hard link for inode Y and the log replay code
deletes the name "A/bar", the file is lost.

The issue wouldn't happen if task B synced the log only after task A called btrfslognew_name(), which would update the log with the new name for inode Y ("A/bar").

Fix this by pinning the log root during renames before removing the old directory entry, and unpinning af ---truncated---

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
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b
Fixed
51bd363c7010d033d3334daf457c824484bf9bf0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b
Fixed
aeeae8feeaae4445a86f9815273e81f902dc1f5b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b
Fixed
2088895d5903082bb9021770b919e733c57edbc1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b
Fixed
8c6874646c21bd820cf475e2874e62c133954023
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
259c4b96d78dda8477a3ac21d6b3cf0eb9f75c8b
Fixed
3ca864de852bc91007b32d2a0d48993724f4abad

Affected versions

v5.*

v5.17
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.10
v6.1.100
v6.1.101
v6.1.102
v6.1.103
v6.1.104
v6.1.105
v6.1.106
v6.1.107
v6.1.108
v6.1.109
v6.1.11
v6.1.110
v6.1.111
v6.1.112
v6.1.113
v6.1.114
v6.1.115
v6.1.116
v6.1.117
v6.1.118
v6.1.119
v6.1.12
v6.1.120
v6.1.121
v6.1.122
v6.1.123
v6.1.124
v6.1.125
v6.1.126
v6.1.127
v6.1.128
v6.1.129
v6.1.13
v6.1.130
v6.1.131
v6.1.132
v6.1.133
v6.1.134
v6.1.135
v6.1.136
v6.1.137
v6.1.138
v6.1.139
v6.1.14
v6.1.140
v6.1.141
v6.1.142
v6.1.15
v6.1.16
v6.1.17
v6.1.18
v6.1.19
v6.1.2
v6.1.20
v6.1.21
v6.1.22
v6.1.23
v6.1.24
v6.1.25
v6.1.26
v6.1.27
v6.1.28
v6.1.29
v6.1.3
v6.1.30
v6.1.31
v6.1.32
v6.1.33
v6.1.34
v6.1.35
v6.1.36
v6.1.37
v6.1.38
v6.1.39
v6.1.4
v6.1.40
v6.1.41
v6.1.42
v6.1.43
v6.1.44
v6.1.45
v6.1.46
v6.1.47
v6.1.48
v6.1.49
v6.1.5
v6.1.50
v6.1.51
v6.1.52
v6.1.53
v6.1.54
v6.1.55
v6.1.56
v6.1.57
v6.1.58
v6.1.59
v6.1.6
v6.1.60
v6.1.61
v6.1.62
v6.1.63
v6.1.64
v6.1.65
v6.1.66
v6.1.67
v6.1.68
v6.1.69
v6.1.7
v6.1.70
v6.1.71
v6.1.72
v6.1.73
v6.1.74
v6.1.75
v6.1.76
v6.1.77
v6.1.78
v6.1.79
v6.1.8
v6.1.80
v6.1.81
v6.1.82
v6.1.83
v6.1.84
v6.1.85
v6.1.86
v6.1.87
v6.1.88
v6.1.89
v6.1.9
v6.1.90
v6.1.91
v6.1.92
v6.1.93
v6.1.94
v6.1.95
v6.1.96
v6.1.97
v6.1.98
v6.1.99
v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.18
v6.12.19
v6.12.2
v6.12.20
v6.12.21
v6.12.22
v6.12.23
v6.12.24
v6.12.25
v6.12.26
v6.12.27
v6.12.28
v6.12.29
v6.12.3
v6.12.30
v6.12.31
v6.12.32
v6.12.33
v6.12.34
v6.12.35
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.15.1
v6.15.2
v6.15.3
v6.15.4
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.10
v6.6.11
v6.6.12
v6.6.13
v6.6.14
v6.6.15
v6.6.16
v6.6.17
v6.6.18
v6.6.19
v6.6.2
v6.6.20
v6.6.21
v6.6.22
v6.6.23
v6.6.24
v6.6.25
v6.6.26
v6.6.27
v6.6.28
v6.6.29
v6.6.3
v6.6.30
v6.6.31
v6.6.32
v6.6.33
v6.6.34
v6.6.35
v6.6.36
v6.6.37
v6.6.38
v6.6.39
v6.6.4
v6.6.40
v6.6.41
v6.6.42
v6.6.43
v6.6.44
v6.6.45
v6.6.46
v6.6.47
v6.6.48
v6.6.49
v6.6.5
v6.6.50
v6.6.51
v6.6.52
v6.6.53
v6.6.54
v6.6.55
v6.6.56
v6.6.57
v6.6.58
v6.6.59
v6.6.6
v6.6.60
v6.6.61
v6.6.62
v6.6.63
v6.6.64
v6.6.65
v6.6.66
v6.6.67
v6.6.68
v6.6.69
v6.6.7
v6.6.70
v6.6.71
v6.6.72
v6.6.73
v6.6.74
v6.6.75
v6.6.76
v6.6.77
v6.6.78
v6.6.79
v6.6.8
v6.6.80
v6.6.81
v6.6.82
v6.6.83
v6.6.84
v6.6.85
v6.6.86
v6.6.87
v6.6.88
v6.6.89
v6.6.9
v6.6.90
v6.6.91
v6.6.92
v6.6.93
v6.6.94
v6.6.95
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

vanir_signatures

[
    {
        "signature_type": "Line",
        "id": "CVE-2025-38365-03878ebb",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aeeae8feeaae4445a86f9815273e81f902dc1f5b",
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "91260643868295368131194234805128903815",
                "77736415764353692043485843040701948829",
                "257573752637298971198572747465081627523",
                "3997875578481258093035515807338666407",
                "188347199761853623420674577528952744131",
                "81836877523711474998311372986374512305",
                "20929319169157864876563486724806463621",
                "144181581416076920829125625526165111814",
                "8450427322108605655103101040270405725",
                "281079912698916125182627327239336293948",
                "332633627141402947737019801605519767909",
                "241212574940448263171760515988784636643",
                "3387653651571621530977874280249236604",
                "50127547289205732534425748754246851202",
                "52865113072757489454882411860622361491",
                "6084822692840415006734528171672934669",
                "233558350281508969480419327126227034139",
                "286590409924987111280093699625971562576",
                "339640614846793220780637648687801772481",
                "305315960409035350096682350078317579534",
                "192477291456329970589831824561165737491",
                "19081069998228508959417124116844647959",
                "308467286799022574957505524961345119926",
                "59901104502840831224890659513877870162",
                "8260427187976746937096037179315636826",
                "275742883038431539018761983958313955356",
                "330491542295107768718648625941760635060",
                "90932416579117384435693813185708508463",
                "290661516274201126589067613858236662187",
                "279845374427380972525437635916787220088",
                "255923224051844605647570454256686412233",
                "24776458037118290577176316900944424510",
                "85070604513501330115228102869254090546",
                "2963348185103407435570122601496785389",
                "55370905190633128348074433154773942232",
                "304680559634744601110246580765105690336",
                "70442533302768018239333101051692018244",
                "155674976918427651508006426925549425505",
                "336861266864603018278781995081007793208",
                "8260427187976746937096037179315636826"
            ]
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-0a53d824",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ca864de852bc91007b32d2a0d48993724f4abad",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename_exchange",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "314561160827685908049564881497030720904",
            "length": 4265.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-245f9a30",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aeeae8feeaae4445a86f9815273e81f902dc1f5b",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "104868956147512064146082997496365276248",
            "length": 4274.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38365-317abcd1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c6874646c21bd820cf475e2874e62c133954023",
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "91260643868295368131194234805128903815",
                "77736415764353692043485843040701948829",
                "257573752637298971198572747465081627523",
                "3997875578481258093035515807338666407",
                "188347199761853623420674577528952744131",
                "81836877523711474998311372986374512305",
                "20929319169157864876563486724806463621",
                "144181581416076920829125625526165111814",
                "8450427322108605655103101040270405725",
                "281079912698916125182627327239336293948",
                "332633627141402947737019801605519767909",
                "241212574940448263171760515988784636643",
                "3387653651571621530977874280249236604",
                "50127547289205732534425748754246851202",
                "52865113072757489454882411860622361491",
                "6084822692840415006734528171672934669",
                "233558350281508969480419327126227034139",
                "286590409924987111280093699625971562576",
                "339640614846793220780637648687801772481",
                "305315960409035350096682350078317579534",
                "192477291456329970589831824561165737491",
                "19081069998228508959417124116844647959",
                "308467286799022574957505524961345119926",
                "59901104502840831224890659513877870162",
                "8260427187976746937096037179315636826",
                "275742883038431539018761983958313955356",
                "330491542295107768718648625941760635060",
                "90932416579117384435693813185708508463",
                "290661516274201126589067613858236662187",
                "279845374427380972525437635916787220088",
                "255923224051844605647570454256686412233",
                "24776458037118290577176316900944424510",
                "85070604513501330115228102869254090546",
                "2963348185103407435570122601496785389",
                "55370905190633128348074433154773942232",
                "304680559634744601110246580765105690336",
                "70442533302768018239333101051692018244",
                "155674976918427651508006426925549425505",
                "336861266864603018278781995081007793208",
                "8260427187976746937096037179315636826"
            ]
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-42d88f68",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c6874646c21bd820cf475e2874e62c133954023",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "280398571072590761487225103754256722268",
            "length": 4466.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-6b270c9c",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aeeae8feeaae4445a86f9815273e81f902dc1f5b",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename_exchange",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "115109368267953652357164203890148440304",
            "length": 4087.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-6f33d3c0",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@51bd363c7010d033d3334daf457c824484bf9bf0",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename_exchange",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "187750034361231800856335594174500253902",
            "length": 4187.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38365-92ff5cce",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@51bd363c7010d033d3334daf457c824484bf9bf0",
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "91260643868295368131194234805128903815",
                "77736415764353692043485843040701948829",
                "257573752637298971198572747465081627523",
                "3997875578481258093035515807338666407",
                "201649873547225347000092000569900742251",
                "51812557026154241750632104616516312183",
                "307336393222955611832108761528855655199",
                "144181581416076920829125625526165111814",
                "8450427322108605655103101040270405725",
                "281079912698916125182627327239336293948",
                "332633627141402947737019801605519767909",
                "241212574940448263171760515988784636643",
                "3387653651571621530977874280249236604",
                "50127547289205732534425748754246851202",
                "52865113072757489454882411860622361491",
                "6084822692840415006734528171672934669",
                "233558350281508969480419327126227034139",
                "286590409924987111280093699625971562576",
                "339640614846793220780637648687801772481",
                "305315960409035350096682350078317579534",
                "192477291456329970589831824561165737491",
                "19081069998228508959417124116844647959",
                "308467286799022574957505524961345119926",
                "59901104502840831224890659513877870162",
                "8260427187976746937096037179315636826",
                "275742883038431539018761983958313955356",
                "330491542295107768718648625941760635060",
                "90932416579117384435693813185708508463",
                "290661516274201126589067613858236662187",
                "3307161328345292758188409866609892370",
                "49886578164040658964878464428388595437",
                "248258806872950512107471615434289321910",
                "85070604513501330115228102869254090546",
                "2963348185103407435570122601496785389",
                "55370905190633128348074433154773942232",
                "304680559634744601110246580765105690336",
                "70442533302768018239333101051692018244",
                "155674976918427651508006426925549425505",
                "336861266864603018278781995081007793208",
                "8260427187976746937096037179315636826"
            ]
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38365-a51875d5",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ca864de852bc91007b32d2a0d48993724f4abad",
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "91260643868295368131194234805128903815",
                "77736415764353692043485843040701948829",
                "257573752637298971198572747465081627523",
                "3997875578481258093035515807338666407",
                "188347199761853623420674577528952744131",
                "81836877523711474998311372986374512305",
                "20929319169157864876563486724806463621",
                "144181581416076920829125625526165111814",
                "8450427322108605655103101040270405725",
                "281079912698916125182627327239336293948",
                "332633627141402947737019801605519767909",
                "241212574940448263171760515988784636643",
                "3387653651571621530977874280249236604",
                "50127547289205732534425748754246851202",
                "52865113072757489454882411860622361491",
                "6084822692840415006734528171672934669",
                "233558350281508969480419327126227034139",
                "286590409924987111280093699625971562576",
                "339640614846793220780637648687801772481",
                "305315960409035350096682350078317579534",
                "192477291456329970589831824561165737491",
                "19081069998228508959417124116844647959",
                "308467286799022574957505524961345119926",
                "59901104502840831224890659513877870162",
                "8260427187976746937096037179315636826",
                "275742883038431539018761983958313955356",
                "330491542295107768718648625941760635060",
                "90932416579117384435693813185708508463",
                "290661516274201126589067613858236662187",
                "279845374427380972525437635916787220088",
                "255923224051844605647570454256686412233",
                "24776458037118290577176316900944424510",
                "85070604513501330115228102869254090546",
                "2963348185103407435570122601496785389",
                "55370905190633128348074433154773942232",
                "304680559634744601110246580765105690336",
                "70442533302768018239333101051692018244",
                "155674976918427651508006426925549425505",
                "336861266864603018278781995081007793208",
                "8260427187976746937096037179315636826"
            ]
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-a8ae1084",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2088895d5903082bb9021770b919e733c57edbc1",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename_exchange",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "267068770890094450925469801696854948779",
            "length": 4067.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-badaf9a8",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c6874646c21bd820cf475e2874e62c133954023",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename_exchange",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "314561160827685908049564881497030720904",
            "length": 4265.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-c04d60f4",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3ca864de852bc91007b32d2a0d48993724f4abad",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "280398571072590761487225103754256722268",
            "length": 4466.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-caceae5f",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2088895d5903082bb9021770b919e733c57edbc1",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "303454101501231272728306642654296634562",
            "length": 4260.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-38365-d93a131e",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@51bd363c7010d033d3334daf457c824484bf9bf0",
        "signature_version": "v1",
        "target": {
            "function": "btrfs_rename",
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "function_hash": "183904969883201315938023446842723957453",
            "length": 4426.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-38365-dd50bed8",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2088895d5903082bb9021770b919e733c57edbc1",
        "signature_version": "v1",
        "target": {
            "file": "fs/btrfs/inode.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "91260643868295368131194234805128903815",
                "77736415764353692043485843040701948829",
                "257573752637298971198572747465081627523",
                "3997875578481258093035515807338666407",
                "188347199761853623420674577528952744131",
                "81836877523711474998311372986374512305",
                "20929319169157864876563486724806463621",
                "144181581416076920829125625526165111814",
                "8450427322108605655103101040270405725",
                "281079912698916125182627327239336293948",
                "332633627141402947737019801605519767909",
                "241212574940448263171760515988784636643",
                "3387653651571621530977874280249236604",
                "50127547289205732534425748754246851202",
                "52865113072757489454882411860622361491",
                "6084822692840415006734528171672934669",
                "233558350281508969480419327126227034139",
                "286590409924987111280093699625971562576",
                "339640614846793220780637648687801772481",
                "305315960409035350096682350078317579534",
                "192477291456329970589831824561165737491",
                "19081069998228508959417124116844647959",
                "308467286799022574957505524961345119926",
                "59901104502840831224890659513877870162",
                "8260427187976746937096037179315636826",
                "275742883038431539018761983958313955356",
                "330491542295107768718648625941760635060",
                "90932416579117384435693813185708508463",
                "290661516274201126589067613858236662187",
                "279845374427380972525437635916787220088",
                "255923224051844605647570454256686412233",
                "24776458037118290577176316900944424510",
                "85070604513501330115228102869254090546",
                "2963348185103407435570122601496785389",
                "55370905190633128348074433154773942232",
                "304680559634744601110246580765105690336",
                "70442533302768018239333101051692018244",
                "155674976918427651508006426925549425505",
                "336861266864603018278781995081007793208",
                "8260427187976746937096037179315636826"
            ]
        },
        "deprecated": false
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
6.1.143
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.96
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.36
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.5