CVE-2024-58077 (GCVE-0-2024-58077)
Vulnerability from cvelistv5
Published
2025-03-06 16:13
Modified
2025-06-19 12:56
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: ASoC: soc-pcm: don't use soc_pcm_ret() on .prepare callback commit 1f5664351410 ("ASoC: lower "no backend DAIs enabled for ... Port" log severity") ignores -EINVAL error message on common soc_pcm_ret(). It is used from many functions, ignoring -EINVAL is over-kill. The reason why -EINVAL was ignored was it really should only be used upon invalid parameters coming from userspace and in that case we don't want to log an error since we do not want to give userspace a way to do a denial-of-service attack on the syslog / diskspace. So don't use soc_pcm_ret() on .prepare callback is better idea.
Impacted products
Vendor Product Version
Linux Linux Version: 1f566435141047ca7db26aa4b0b6647a25badaee
Version: 1f566435141047ca7db26aa4b0b6647a25badaee
Version: 1f566435141047ca7db26aa4b0b6647a25badaee
Version: 1f566435141047ca7db26aa4b0b6647a25badaee
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "sound/soc/soc-pcm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee",
              "status": "affected",
              "version": "1f566435141047ca7db26aa4b0b6647a25badaee",
              "versionType": "git"
            },
            {
              "lessThan": "90778f31efdf44622065ebbe8d228284104bd26f",
              "status": "affected",
              "version": "1f566435141047ca7db26aa4b0b6647a25badaee",
              "versionType": "git"
            },
            {
              "lessThan": "8ec4e8c8e142933eaa8e1ed87168831069250e4e",
              "status": "affected",
              "version": "1f566435141047ca7db26aa4b0b6647a25badaee",
              "versionType": "git"
            },
            {
              "lessThan": "301c26a018acb94dd537a4418cefa0f654500c6f",
              "status": "affected",
              "version": "1f566435141047ca7db26aa4b0b6647a25badaee",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "sound/soc/soc-pcm.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "lessThan": "6.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.78",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.78",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.14",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.3",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: soc-pcm: don\u0027t use soc_pcm_ret() on .prepare callback\n\ncommit 1f5664351410 (\"ASoC: lower \"no backend DAIs enabled for ... Port\"\nlog severity\") ignores -EINVAL error message on common soc_pcm_ret().\nIt is used from many functions, ignoring -EINVAL is over-kill.\n\nThe reason why -EINVAL was ignored was it really should only be used\nupon invalid parameters coming from userspace and in that case we don\u0027t\nwant to log an error since we do not want to give userspace a way to do\na denial-of-service attack on the syslog / diskspace.\n\nSo don\u0027t use soc_pcm_ret() on .prepare callback is better idea."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-19T12:56:44.523Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee"
        },
        {
          "url": "https://git.kernel.org/stable/c/90778f31efdf44622065ebbe8d228284104bd26f"
        },
        {
          "url": "https://git.kernel.org/stable/c/8ec4e8c8e142933eaa8e1ed87168831069250e4e"
        },
        {
          "url": "https://git.kernel.org/stable/c/301c26a018acb94dd537a4418cefa0f654500c6f"
        }
      ],
      "title": "ASoC: soc-pcm: don\u0027t use soc_pcm_ret() on .prepare callback",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-58077",
    "datePublished": "2025-03-06T16:13:41.159Z",
    "dateReserved": "2025-03-06T15:52:09.183Z",
    "dateUpdated": "2025-06-19T12:56:44.523Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-58077\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-03-06T17:15:21.123\",\"lastModified\":\"2025-06-19T13:15:51.193\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nASoC: soc-pcm: don\u0027t use soc_pcm_ret() on .prepare callback\\n\\ncommit 1f5664351410 (\\\"ASoC: lower \\\"no backend DAIs enabled for ... Port\\\"\\nlog severity\\\") ignores -EINVAL error message on common soc_pcm_ret().\\nIt is used from many functions, ignoring -EINVAL is over-kill.\\n\\nThe reason why -EINVAL was ignored was it really should only be used\\nupon invalid parameters coming from userspace and in that case we don\u0027t\\nwant to log an error since we do not want to give userspace a way to do\\na denial-of-service attack on the syslog / diskspace.\\n\\nSo don\u0027t use soc_pcm_ret() on .prepare callback is better idea.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: soc-pcm: no usar soc_pcm_ret() en la devoluci\u00f3n de llamada .prepare commit 1f5664351410 (\\\"ASoC: menor severidad del registro \\\"no backend DAIs enabled for ... Port\\\") ignora el mensaje de error -EINVAL en soc_pcm_ret() com\u00fan. Se usa desde muchas funciones, ignorar -EINVAL es exagerado. La raz\u00f3n por la que se ignor\u00f3 -EINVAL fue que realmente solo deber\u00eda usarse en par\u00e1metros no v\u00e1lidos que provengan del espacio de usuario y, en ese caso, no queremos registrar un error ya que no queremos darle al espacio de usuario una forma de realizar un ataque de denegaci\u00f3n de servicio en el syslog / espacio de disco. Por lo tanto, no usar soc_pcm_ret() en la devoluci\u00f3n de llamada .prepare es una mejor idea.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/301c26a018acb94dd537a4418cefa0f654500c6f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/79b8c7c93beb4f5882c9ee5b9ba73354fa4bc9ee\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8ec4e8c8e142933eaa8e1ed87168831069250e4e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/90778f31efdf44622065ebbe8d228284104bd26f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…