CVE-2024-42102: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-3cf4-3gwv-8jwp
CVSS 5.5
CWE-369
Published
Advisory Summary

CVE-2024-42102 is a MODERATE (CVSS 5.5) security vulnerability vulnerability (CWE-369: Divide By Zero) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product divides a value by zero.. Remediation is available in the latest vendor maintenance releases.

CVE-2024-42102 at a Glance

CVE Identifier CVE-2024-42102
GHSA Identifier GHSA-3cf4-3gwv-8jwp
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-369: Divide By Zero
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-42102

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-42102, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-369: Divide By Zero, where the product divides a value by zero. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In the Linux kernel, the following vulnerability has been resolved: Revert "mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again" Patch series "mm: Avoid possible overflows in dirty throttling". Dirty throttling logic assumes dirty limits in page units fit into 32-bits. This patch series makes sure this is true (see patch 2/2 for more details). This patch (of 2): This reverts commit 9319b647902cbd5cc884ac08a8a6d54ce111fc78. The commit is broken in several ways. Firstly, the removed (u64) cast from the multiplication will introduce a multiplication overflow on 32-bit archs if wb_thresh * bg_thresh >= 1<<32 (which is actually common - the default settings with 4GB of RAM will trigger this). Secondly, the div64_u64() is unnecessarily expensive on 32-bit archs. We have div64_ul() in case we want to be safe & cheap. Thirdly, if dirty thresholds are larger than 1<<32 pages, then dirty balancing is going to blow up in many other spectacular ways anyway so trying to fix one possible overflow is just moot.

References

Frequently Asked Questions

What is CVE-2024-42102?
CVE-2024-42102 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-369: Divide By Zero.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2024-42102?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2024-42102?
CVE-2024-42102 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-42102?
CVE-2024-42102 is classified under CWE-369: Divide By Zero (The product divides a value by zero.).
How can I check Maven dependencies for CVE-2024-42102?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3cf4-3gwv-8jwp",
  "modified" : "2025-11-04T00:31:05Z",
  "published" : "2024-07-30T09:31:51Z",
  "aliases" : [ "CVE-2024-42102" ],
  "details" : "In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again\"\n\nPatch series \"mm: Avoid possible overflows in dirty throttling\".\n\nDirty throttling logic assumes dirty limits in page units fit into\n32-bits.  This patch series makes sure this is true (see patch 2/2 for\nmore details).\n\n\nThis patch (of 2):\n\nThis reverts commit 9319b647902cbd5cc884ac08a8a6d54ce111fc78.\n\nThe commit is broken in several ways.  Firstly, the removed (u64) cast\nfrom the multiplication will introduce a multiplication overflow on 32-bit\narchs if wb_thresh * bg_thresh >= 1<<32 (which is actually common - the\ndefault settings with 4GB of RAM will trigger this).  Secondly, the\ndiv64_u64() is unnecessarily expensive on 32-bit archs.  We have\ndiv64_ul() in case we want to be safe & cheap.  Thirdly, if dirty\nthresholds are larger than 1<<32 pages, then dirty balancing is going to\nblow up in many other spectacular ways anyway so trying to fix one\npossible overflow is just moot.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-42102"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/000099d71648504fb9c7a4616f92c2b70c3e44ec"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/145faa3d03688cbb7bbaaecbd84c01539852942c"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/23a28f5f3f6ca1e4184bd0e9631cd0944cf1c807"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/253f9ea7e8e53a5176bd80ceb174907b10724c1a"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/2820005edae13b140f2d54267d1bd6bb23915f59"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/30139c702048f1097342a31302cbd3d478f50c63"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/cbbe17a324437c0ff99881a3ee453da45b228a00"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/f6620df12cb6bdcad671d269debbb23573502f9d"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-369" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2024-07-30T08:15:02Z"
  }
}