Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-47172
HistoryMar 25, 2024 - 9:16 a.m.

CVE-2021-47172 iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers

2024-03-2509:16:23
Linux
github.com
3
vulnerability
overflow
ad7124

AI Score

7.1

Confidence

High

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

In the Linux kernel, the following vulnerability has been resolved:

iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers

Channel numbering must start at 0 and then not have any holes, or
it is possible to overflow the available storage. Note this bug was
introduced as part of a fix to ensure we didn’t rely on the ordering
of child nodes. So we need to support arbitrary ordering but they all
need to be there somewhere.

Note I hit this when using qemu to test the rest of this series.
Arguably this isn’t the best fix, but it is probably the most minimal
option for backporting etc.

Alexandru’s sign-off is here because he carried this patch in a larger
set that Jonathan then applied.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5408cbc63373",
        "lessThan": "f49149964d24",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d7857e4ee1ba",
        "lessThan": "f70122825076",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d7857e4ee1ba",
        "lessThan": "26da8040eccc",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d7857e4ee1ba",
        "lessThan": "f2a772c51206",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/iio/adc/ad7124.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.5"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.5",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.4.124",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.42",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.12.9",
        "versionType": "custom",
        "lessThanOrEqual": "5.12.*"
      },
      {
        "status": "unaffected",
        "version": "5.13",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/iio/adc/ad7124.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

7.1

Confidence

High

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial