cve/2018/CVE-2018-13405.md

23 lines
1.2 KiB
Markdown
Raw Normal View History

2024-05-26 14:27:05 +02:00
### [CVE-2018-13405](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-13405)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### 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.
### POC
#### Reference
2024-06-09 00:33:16 +00:00
- https://usn.ubuntu.com/3753-1/
2024-05-26 14:27:05 +02:00
- https://usn.ubuntu.com/3753-2/
2024-06-09 00:33:16 +00:00
- https://usn.ubuntu.com/3753-2/
2024-05-26 14:27:05 +02:00
- https://www.exploit-db.com/exploits/45033/
2024-06-09 00:33:16 +00:00
- https://www.exploit-db.com/exploits/45033/
2024-05-26 14:27:05 +02:00
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/nidhi7598/linux-3.0.35_CVE-2018-13405