What’s Vulnerable › Vulnerabilities
CVE-2010-2226
- Severity: low (CVSS 2.1 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2010-09-03 · updated 2026-06-16
- Weakness: CWE-200
Description
The xfs_swapext function in fs/xfs/xfs_dfrag.c in the Linux kernel before 2.6.35 does not properly check the file descriptors passed to the SWAPEXT ioctl, which allows local users to leverage write access and obtain read access by swapping one file into another file.
Affected products
- Canonical Ubuntu Linux: 6.06, 8.04, 9.04, 9.10, 10.04, 10.10
- Debian Linux: 5.0
- Linux kernel: before 2.6.35 — fixed in 2.6.35
- SUSE Linux Enterprise Server 15 SP1: 10-sp3
- SUSE Linux Enterprise Server: 10-sp3
- SUSE Linux Enterprise Software Development Kit: 10-sp3
How to fix
Upgrade to a fixed version: Linux kernel 2.6.35. Check the vendor advisory for mitigations.
References
- http://archives.free.net.ph/message/20100616.130710.301704aa.en.html
- http://archives.free.net.ph/message/20100616.135735.40f53a32.en.html
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=1817176a86352f65210139d4c794ad2d19fc6b63
- http://lists.opensuse.org/opensuse-security-announce/2010-12/msg00004.html
- http://lists.opensuse.org/opensuse-security-announce/2011-02/msg00000.html
- http://marc.info/?l=oss-security&m=127677135609357&w=2
- http://marc.info/?l=oss-security&m=127687486331790&w=2
- http://secunia.com/advisories/43315
- http://www.debian.org/security/2010/dsa-2094
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.35
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:198
- http://www.redhat.com/support/errata/RHSA-2010-0610.html
Get alerted when CVE-2010-2226 or the next vulnerability affects your stack