Bug 1882591 (CVE-2020-25285) - CVE-2020-25285 kernel: race condition between hugetlb sysctl handlers in mm/hugetlb.c
Summary: CVE-2020-25285 kernel: race condition between hugetlb sysctl handlers in mm/h...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2020-25285
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1882592 1886241 1886242
Blocks: 1886218
TreeView+ depends on / blocked
 
Reported: 2020-09-25 04:39 UTC by Dhananjay Arunesh
Modified: 2023-05-12 21:18 UTC (History)
45 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernels sysctl handling code for hugepages management. When multiple root level processes would write to modify the /proc/sys/vm/nr_hugepages file it could create a race on internal variables leading to a system crash or memory corruption.
Clone Of:
Environment:
Last Closed: 2021-05-18 20:36:20 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:2538 0 None None None 2021-06-23 18:06:02 UTC
Red Hat Product Errata RHBA-2021:2541 0 None None None 2021-06-24 11:51:07 UTC

Description Dhananjay Arunesh 2020-09-25 04:39:04 UTC
A race condition between hugetlb sysctl handlers in mm/hugetlb.c in the Linux kernel could be used by local attackers to corrupt memory, cause a NULL pointer dereference, or possibly have unspecified other impact

References:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=17743798d81238ab13050e8e2833699b54e15467
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.8.8

Comment 1 Dhananjay Arunesh 2020-09-25 04:39:57 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1882592]

Comment 3 Justin M. Forbes 2020-09-25 12:31:56 UTC
This was fixed for Fedora with the 5.8.8 stable kernel updates.

Comment 5 Wade Mealing 2020-10-08 01:41:37 UTC
This flaw is rated as a moderate, access to write to /proc/sys/vm/nr_hugepages is restricted to root and not available to regular users.

Comment 11 Petr Matousek 2020-10-13 15:57:56 UTC
Statement:

This flaw is rated as having Moderate impact as access to write to /proc/sys/vm/nr_hugepages is restricted to root and not available to regular users.

Comment 12 Petr Matousek 2020-10-13 15:57:58 UTC
Mitigation:

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Comment 13 errata-xmlrpc 2021-05-18 13:20:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:1578 https://access.redhat.com/errata/RHSA-2021:1578

Comment 14 errata-xmlrpc 2021-05-18 14:40:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:1739 https://access.redhat.com/errata/RHSA-2021:1739

Comment 15 Product Security DevOps Team 2021-05-18 20:36:20 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-25285


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