Skip to content
Heist/ feed
Back to feed
UnratedFix available

iio: adc: at91: call input_free_device() on allocated iio_dev

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: iio: adc: at91: call input_free_device() on allocated iio_dev Current implementation of at91_ts_register() calls input_free_deivce() on st->ts_input, however, the err label can be reached before the allocated iio_dev is stored to st->ts_input. Thus call input_free_device() on input instead of st->ts_input.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.234, 5.15.177, 5.4.290, 6.1.125, 6.12.10, 6.6.72
CVEs
CVE-2024-57904
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:45 UTC · Revision 1

Source evidence

iio: adc: at91: call input_free_device() on allocated iio_dev

core-osv · Original source

Published 19 Jan 2025, 11:52 UTC

In the Linux kernel, the following vulnerability has been resolved: iio: adc: at91: call input_free_device() on allocated iio_dev Current implementation of at91_ts_register() calls input_free_deivce() on st->ts_input, however, the err label can be reached before the allocated iio_dev is stored to st->ts_input. Thus call input_free_device() on input instead of st->ts_input.

osv:CVE-2024-57904

Kernel

Fixed versions: 5.4.290, 5.10.234, 5.15.177, 6.1.125, 6.6.72, 6.12.10

Complete source record
{
  "id": "64b36f547fa0450d974dfc214c8cce238aa66bdc50024345e4ddcbf50f1a7752",
  "url": "https://osv.dev/vulnerability/CVE-2024-57904",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "iio: adc: at91: call input_free_device() on allocated iio_dev",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: iio: adc: at91: call input_free_device() on allocated iio_dev Current implementation of at91_ts_register() calls input_free_deivce() on st->ts_input, however, the err label can be reached before the allocated iio_dev is stored to st->ts_input. Thus call input_free_device() on input instead of st->ts_input.",
    "evidence": "osv:CVE-2024-57904",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.290",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.234",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.177",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.125",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.72",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-57904",
      "aliases": [
        "CVE-2024-57904"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "84882b060301c35ab7e2c1ef355b0bd06b764195"
                },
                {
                  "fixed": "b549c90bfe66f704878aa1e57b30ba15dab71935"
                },
                {
                  "fixed": "ac8d932e3214c10ec641ad45a253929a596ead62"
                },
                {
                  "fixed": "028a1ba8e3bae593d701aee4f690ce7c195b67d6"
                },
                {
                  "fixed": "25ef52f1c15db67d890b80203a911b9a57b0bf71"
                },
                {
                  "fixed": "09e067e3c83e0695d338e8a26916e3c2bc44be02"
                },
                {
                  "fixed": "d115b7f3ddc03b38bb7e8754601556fe9b4fc034"
                },
                {
                  "fixed": "de6a73bad1743e9e81ea5a24c178c67429ff510b"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57904.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.16.0"
                },
                {
                  "fixed": "5.4.290"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.234"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.177"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.125"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.72"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57904.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.222350679Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/028a1ba8e3bae593d701aee4f690ce7c195b67d6",
        "https://git.kernel.org/stable/c/09e067e3c83e0695d338e8a26916e3c2bc44be02",
        "https://git.kernel.org/stable/c/25ef52f1c15db67d890b80203a911b9a57b0bf71",
        "https://git.kernel.org/stable/c/ac8d932e3214c10ec641ad45a253929a596ead62",
        "https://git.kernel.org/stable/c/b549c90bfe66f704878aa1e57b30ba15dab71935",
        "https://git.kernel.org/stable/c/d115b7f3ddc03b38bb7e8754601556fe9b4fc034",
        "https://git.kernel.org/stable/c/de6a73bad1743e9e81ea5a24c178c67429ff510b",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57904.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-57904",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57904.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-57904",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 501228,
  "published_at": "2025-01-19T11:52:28.982+00:00"
}