CVE-2025-40269: Software Security Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-7g56-9fh3-wcxw
CVSS 7.8
Published
Advisory Summary

CVE-2025-40269 is a HIGH (CVSS 7.8) security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.

CVE-2025-40269 at a Glance

CVE Identifier CVE-2025-40269
GHSA Identifier GHSA-7g56-9fh3-wcxw
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

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:H/I:H/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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-40269

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-2025-40269, 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 General Security Weakness. 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: ALSA: usb-audio: Fix potential overflow of PCM transfer buffer The PCM stream data in USB-audio driver is transferred over USB URB packet buffers, and each packet size is determined dynamically. The packet sizes are limited by some factors such as wMaxPacketSize USB descriptor. OTOH, in the current code, the actually used packet sizes are determined only by the rate and the PPS, which may be bigger than the size limit above. This results in a buffer overflow, as reported by syzbot. Basically when the limit is smaller than the calculated packet size, it implies that something is wrong, most likely a weird USB descriptor. So the best option would be just to return an error at the parameter setup time before doing any further operations. This patch introduces such a sanity check, and returns -EINVAL when the packet size is greater than maxpacksize. The comparison with ep->packsize[1] alone should suffice since it's always equal or greater than ep->packsize[0].

References

NVD — CVE-2025-40269 NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-40269
git.kernel.org/stable/c/05a1fc5efd... WEB
https://git.kernel.org/stable/c/05a1fc5efdd8560f34a3af39c9cf1e1526cc3ddf
git.kernel.org/stable/c/217d47255a... WEB
https://git.kernel.org/stable/c/217d47255a2ec8b246f2725f5db9ac3f1d4109d7
git.kernel.org/stable/c/282aba5671... WEB
https://git.kernel.org/stable/c/282aba56713bbc58155716b55ca7222b2d9cf3c8
git.kernel.org/stable/c/480a1490c5... WEB
https://git.kernel.org/stable/c/480a1490c595a242f27493a4544b3efb21b29f6a
git.kernel.org/stable/c/6a5da3fa80... WEB
https://git.kernel.org/stable/c/6a5da3fa80affc948923f20a4e086177f505e86e
git.kernel.org/stable/c/98e9d5e33b... WEB
https://git.kernel.org/stable/c/98e9d5e33bda8db875cc1a4fe99c192658e45ab6
git.kernel.org/stable/c/ab0b5e92fc... WEB
https://git.kernel.org/stable/c/ab0b5e92fc36ee82c1bd01fe896d0f775ed5de41
git.kernel.org/stable/c/c4dc012b02... WEB
https://git.kernel.org/stable/c/c4dc012b027c9eb101583011089dea14d744e314
git.kernel.org/stable/c/d2c04f20cc... WEB
https://git.kernel.org/stable/c/d2c04f20ccc6c0d219e6d3038bab45bc66a178ad
git.kernel.org/stable/c/d67dde0204... WEB
https://git.kernel.org/stable/c/d67dde02049e632ba58d3c44a164a74b6a737154
git.kernel.org/stable/c/e0ed5a36fb... WEB
https://git.kernel.org/stable/c/e0ed5a36fb3ab9e7b9ee45cd17f09f6d5f594360
git.kernel.org/stable/c/ece3b981bb... WEB
https://git.kernel.org/stable/c/ece3b981bb6620e47fac826a2156c090b1a936a0
git.kernel.org/stable/c/ef592bf223... WEB
https://git.kernel.org/stable/c/ef592bf2232a2daa9fffa8881881fc9957ea56e9

Frequently Asked Questions

What is CVE-2025-40269?
CVE-2025-40269 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2025-40269?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2025-40269?
CVE-2025-40269 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-40269?
CVE-2025-40269 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2025-40269?
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-7g56-9fh3-wcxw",
  "modified" : "2026-07-30T06:32:18Z",
  "published" : "2025-12-07T00:30:56Z",
  "aliases" : [ "CVE-2025-40269" ],
  "details" : "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: usb-audio: Fix potential overflow of PCM transfer buffer\n\nThe PCM stream data in USB-audio driver is transferred over USB URB\npacket buffers, and each packet size is determined dynamically.  The\npacket sizes are limited by some factors such as wMaxPacketSize USB\ndescriptor.  OTOH, in the current code, the actually used packet sizes\nare determined only by the rate and the PPS, which may be bigger than\nthe size limit above.  This results in a buffer overflow, as reported\nby syzbot.\n\nBasically when the limit is smaller than the calculated packet size,\nit implies that something is wrong, most likely a weird USB\ndescriptor.  So the best option would be just to return an error at\nthe parameter setup time before doing any further operations.\n\nThis patch introduces such a sanity check, and returns -EINVAL when\nthe packet size is greater than maxpacksize.  The comparison with\nep->packsize[1] alone should suffice since it's always equal or\ngreater than ep->packsize[0].",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-40269"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/05a1fc5efdd8560f34a3af39c9cf1e1526cc3ddf"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/217d47255a2ec8b246f2725f5db9ac3f1d4109d7"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/282aba56713bbc58155716b55ca7222b2d9cf3c8"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/480a1490c595a242f27493a4544b3efb21b29f6a"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/6a5da3fa80affc948923f20a4e086177f505e86e"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/98e9d5e33bda8db875cc1a4fe99c192658e45ab6"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/ab0b5e92fc36ee82c1bd01fe896d0f775ed5de41"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/c4dc012b027c9eb101583011089dea14d744e314"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/d2c04f20ccc6c0d219e6d3038bab45bc66a178ad"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/d67dde02049e632ba58d3c44a164a74b6a737154"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/e0ed5a36fb3ab9e7b9ee45cd17f09f6d5f594360"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/ece3b981bb6620e47fac826a2156c090b1a936a0"
  }, {
    "type" : "WEB",
    "url" : "https://git.kernel.org/stable/c/ef592bf2232a2daa9fffa8881881fc9957ea56e9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2025-12-06T22:15:54Z"
  }
}