CVE-2018-13405

Source
https://cve.org/CVERecord?id=CVE-2018-13405
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-13405.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-13405
Downstream
Related
Published
2018-07-06T14:29:01.223Z
Modified
2026-03-15T22:18:57.177932Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

The inodeinitowner function in fs/inode.c in the Linux kernel through 3.16 allows local users to create files with an unintended group ownership, in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of that group. Here, the non-member can trigger creation of a plain file whose group ownership is that group. The intended behavior was that the non-member can trigger creation of a directory (but not a plain file) whose group ownership is that group. The non-member can escalate privileges by making the plain file executable and SGID.

References

Affected packages

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

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
Type
GIT
Repo
https://github.com/torvalds/linux
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "3.16"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "4.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "6.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "6.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "6.6"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "6.0"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-13405.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "8.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "14.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "18.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "34"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "35"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "2.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.2"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.3"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.2"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.3"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "7.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "13.0.0"
            },
            {
                "fixed": "13.1.3.5"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "14.0.0"
            },
            {
                "fixed": "14.1.3.1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "15.0.0"
            },
            {
                "fixed": "15.0.1.4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "15.1.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.0.0"
            }
        ]
    }
]