CVE-2015-1420: Race Condition

Published Jan 30, 2015
·
Updated

A specially crafted user space application may exploit a bug in handletopath to copy additional data to a target application. This defect is caused by the kernel incorrectly assuming that the arguments provided do not change.

This is problematic since the kernel does size verifications only after the first read, so if the number of extra bytes changes in userspace between the first and second calls, we'll have an incoherent view of filehandle.

The fix is to read the size once, and copy that over to the final structure referencing it from that point rather than the value from the application which may change.

The patch is not yet present in official kernel tree: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/fs/fhandle.c

Proposed Patch: http://marc.info/?l=linux-kernel&m=142247707318982&w=2

Other sources

Race condition in the handletopath function in fs/fhandle.c in the Linux kernel through 3.19.1 allows local users to bypass intended size restrictions and trigger read operations on additional memory locations by changing the handlebytes value of a file handle during the execution of this function.

— Launchpad

Affected Software

3 affected componentsFixes available
Debian Debian Linux=7.0
Linux Linux kernel<=3.18.9
debian/linux
3.2.65-1+deb7u23.16.7-ckt7-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 3.2.65-1+deb7u2Fixed in 3.16.7-ckt7-1
  2. Compensating control

    In fs/fhandle.c, update handle_to_path to read handle_bytes once and use that copied size in the final file_handle structure, rather than relying on the mutable userspace value.

Event History

Jan 30, 2015
Data Sourced
11:11 AM
DescriptionSeverityAffected Software
Mar 16, 2015
CVE Published
12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Dec 28, 2016
Data Sourced
02:59 AM
Weakness
Data Sourced
via NVD·02:59 AM
DescriptionSeverityWeaknessAffected Software
Updated
02:59 AM
Affected Software
Feb 17, 2021
Data Sourced
via Red Hat·05:41 AM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·02:25 AM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability severity of CVE-2015-1420?

CVE-2015-1420 has been classified with a high severity due to potential data leakage and application manipulation.

2

How do I fix CVE-2015-1420?

To fix CVE-2015-1420, upgrade to the patched versions of the Linux kernel as specified in the advisory.

3

Which systems are affected by CVE-2015-1420?

CVE-2015-1420 affects several versions of the Linux kernel, specifically versions up to 3.18.9 and specific Debian kernel packages.

4

Can CVE-2015-1420 be exploited remotely?

CVE-2015-1420 is primarily an issue with local user applications, making remote exploitation unlikely but not impossible if local access is compromised.

5

What are the potential impacts of CVE-2015-1420?

The potential impacts of CVE-2015-1420 include unintended data copying, leading to information disclosure and application errors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203