Bug 2301496 (CVE-2024-42131) - CVE-2024-42131 kernel: mm: avoid overflows in dirty throttling logic
Summary: CVE-2024-42131 kernel: mm: avoid overflows in dirty throttling logic
Keywords:
Status: NEW
Alias: CVE-2024-42131
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301812
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:35 UTC by OSIDB Bzimport
Modified: 2024-10-18 14:53 UTC (History)
4 users (show)

Fixed In Version: kernel 5.10.222, kernel 5.15.163, kernel 6.1.98, kernel 6.6.39, kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:6650 0 None None None 2024-09-12 14:28:43 UTC
Red Hat Product Errata RHBA-2024:7043 0 None None None 2024-09-24 09:43:31 UTC
Red Hat Product Errata RHBA-2024:7198 0 None None None 2024-09-26 09:51:00 UTC
Red Hat Product Errata RHBA-2024:7236 0 None None None 2024-09-26 14:38:04 UTC
Red Hat Product Errata RHBA-2024:7637 0 None None None 2024-10-03 14:46:21 UTC
Red Hat Product Errata RHBA-2024:8227 0 None None None 2024-10-17 06:46:19 UTC
Red Hat Product Errata RHSA-2024:6267 0 None None None 2024-09-04 00:25:45 UTC
Red Hat Product Errata RHSA-2024:6268 0 None None None 2024-09-04 00:11:44 UTC
Red Hat Product Errata RHSA-2024:6567 0 None None None 2024-09-11 01:01:10 UTC
Red Hat Product Errata RHSA-2024:7000 0 None None None 2024-09-24 02:35:26 UTC
Red Hat Product Errata RHSA-2024:7001 0 None None None 2024-09-24 00:39:56 UTC

Description OSIDB Bzimport 2024-07-30 08:35:42 UTC
In the Linux kernel, the following vulnerability has been resolved:

mm: avoid overflows in dirty throttling logic

The dirty throttling logic is interspersed with assumptions that dirty
limits in PAGE_SIZE units fit into 32-bit (so that various multiplications
fit into 64-bits).  If limits end up being larger, we will hit overflows,
possible divisions by 0 etc.  Fix these problems by never allowing so
large dirty limits as they have dubious practical value anyway.  For
dirty_bytes / dirty_background_bytes interfaces we can just refuse to set
so large limits.  For dirty_ratio / dirty_background_ratio it isn't so
simple as the dirty limit is computed from the amount of available memory
which can change due to memory hotplug etc.  So when converting dirty
limits from ratios to numbers of pages, we just don't allow the result to
exceed UINT_MAX.

This is root-only triggerable problem which occurs when the operator
sets dirty limits to >16 TB.

Comment 1 Mauro Matteo Cascella 2024-07-30 19:54:13 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073027-CVE-2024-42131-2f7f@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 19:54:35 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301812]

Comment 10 errata-xmlrpc 2024-09-04 00:11:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:6268 https://access.redhat.com/errata/RHSA-2024:6268

Comment 11 errata-xmlrpc 2024-09-04 00:25:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:6267 https://access.redhat.com/errata/RHSA-2024:6267

Comment 12 errata-xmlrpc 2024-09-11 01:01:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:6567 https://access.redhat.com/errata/RHSA-2024:6567

Comment 13 errata-xmlrpc 2024-09-24 00:39:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7001 https://access.redhat.com/errata/RHSA-2024:7001

Comment 14 errata-xmlrpc 2024-09-24 02:35:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:7000 https://access.redhat.com/errata/RHSA-2024:7000


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