CVE-2018-13405
Vulnerability Summary
Timeline
Description
The inode_init_owner 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.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v2.0•MEDIUM•Score: 4.6AV:L/AC:L/Au:N/C:P/I:P/A:P
EPSS Trends
Current EPSS score: 0.15%• Percentile: 35%
Techniques & Countermeasures
- CWE-269•Improper Privilege Management
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Affected Systems
- canonical•ubuntu_linux
14.04 | 16.04 | 18.04
- debian•debian_linux
8.0 | 9.0
- f5•big-ip_access_policy_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_advanced_firewall_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_analytics
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_application_acceleration_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_application_security_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_domain_name_system
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_edge_gateway
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_fraud_protection_service
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_global_traffic_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_link_controller
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_local_traffic_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_policy_enforcement_manager
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- f5•big-ip_webaccelerator
≥ 13.0.0, < 13.1.3.5 | ≥ 14.0.0, < 14.1.3.1 | ≥ 15.0.0, < 15.0.1.4 | 15.1.0 | 16.0.0
- fedoraproject•fedora
34 | 35
- linux•linux_kernel
≤ 3.16
- redhat•enterprise_linux_aus
7.4
- redhat•enterprise_linux_desktop
6.0 | 7.0
- redhat•enterprise_linux_eus
7.4 | 7.5
- redhat•enterprise_linux_for_real_time
7
- redhat•enterprise_linux_server
6.0 | 7.0
- redhat•enterprise_linux_server_aus
6.6 | 7.2 | 7.3
- redhat•enterprise_linux_server_tus
7.2 | 7.3 | 7.4
- redhat•enterprise_linux_workstation
6.0 | 7.0
- redhat•mrg_realtime
2.0
- redhat•virtualization
4.0
References (28)
- https://usn.ubuntu.com/3752-2/
- https://access.redhat.com/errata/RHSA-2018:3083
- https://usn.ubuntu.com/3752-3/
- https://twitter.com/grsecurity/status/1015082951204327425
- https://usn.ubuntu.com/3753-2/
- https://usn.ubuntu.com/3754-1/
- http://openwall.com/lists/oss-security/2018/07/13/2
- https://access.redhat.com/errata/RHSA-2018:2948
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
- https://lists.debian.org/debian-lts-announce/2018/08/msg00014.html
- https://www.exploit-db.com/exploits/45033/
- https://www.debian.org/security/2018/dsa-4266
- http://www.securityfocus.com/bid/106503
- https://usn.ubuntu.com/3752-1/
- https://access.redhat.com/errata/RHSA-2018:3096
- https://usn.ubuntu.com/3753-1/
- https://github.com/torvalds/linux/commit/0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
- https://access.redhat.com/errata/RHSA-2019:0717
- https://support.f5.com/csp/article/K00854051
- https://access.redhat.com/errata/RHSA-2019:2476
- https://access.redhat.com/errata/RHSA-2019:2566
- https://access.redhat.com/errata/RHSA-2019:2696
- https://access.redhat.com/errata/RHSA-2019:2730
- https://access.redhat.com/errata/RHSA-2019:4159
- https://access.redhat.com/errata/RHSA-2019:4164
- https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=0b3369840cd61c23e2b9241093737b4c395cb406
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKKIAUMR5FAYLZ7HLEPOXMKAAE3BYBQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HRBNBX73SAFKQWBOX76SLMWPTKJPVGEJ/