Bug 616998 (CVE-2010-2537, CVE-2010-2538) - CVE-2010-2537 CVE-2010-2538 kernel: btrfs: fix checks in BTRFS_IOC_CLONE_RANGE
Summary: CVE-2010-2537 CVE-2010-2538 kernel: btrfs: fix checks in BTRFS_IOC_CLONE_RANGE
Status: NEW
Alias: CVE-2010-2537, CVE-2010-2538
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
: 616992 (view as bug list)
Depends On: 617003
TreeView+ depends on / blocked
Reported: 2010-07-21 21:25 UTC by Petr Matousek
Modified: 2020-07-24 22:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Petr Matousek 2010-07-21 21:25:19 UTC
Description of problem:
1. CVE-2010-2537 - The BTRFS_IOC_CLONE and BTRFS_IOC_CLONE_RANGE ioctls should check whether the donor file is append-only before writing to it.

2. CVE-2010-2538 - The BTRFS_IOC_CLONE_RANGE ioctl appears to have an integer
overflow that allows a user to specify an out-of-bounds range to copy from the source file (if off + len wraps around).

Upstream commit:


The kernel in Red Hat Enterprise Linux 6 has support for Btrfs by default.

Comment 1 Petr Matousek 2010-07-21 21:25:46 UTC

Not vulnerable. This issue did not affect the versions of Linux kernel as shipped with Red Hat Enterprise Linux 3, 4, 5 and Red Hat Enterprise MRG as they did not include support for Btrfs, a new copy on write filesystem.

Comment 3 Eugene Teo (Security Response) 2010-08-02 03:50:04 UTC

Red Hat would like to thank Dan Rosenberg for responsibly reporting this issue.

Comment 4 Eugene Teo (Security Response) 2010-08-02 03:57:52 UTC
*** Bug 616992 has been marked as a duplicate of this bug. ***

Comment 6 Chuck Ebbert 2010-08-02 21:14:24 UTC
Fixed upstream in 2.6.35,, and

Note You need to log in before you can comment on or make changes to this bug.