Lucene search

K
cvelistLinuxCVELIST:CVE-2024-26926
HistoryApr 24, 2024 - 11:23 p.m.

CVE-2024-26926 binder: check offset alignment in binder_get_object()

2024-04-2423:23:40
Linux
www.cve.org
6
linux kernel
binder
offset alignment
vulnerability
data leakage
copy_from_user

AI Score

7.7

Confidence

High

EPSS

0

Percentile

10.3%

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

binder: check offset alignment in binder_get_object()

Commit 6d98eb95b450 (“binder: avoid potential data leakage when copying
txn”) introduced changes to how binder objects are copied. In doing so,
it unintentionally removed an offset alignment check done through calls
to binder_alloc_copy_from_buffer() -> check_buffer().

These calls were replaced in binder_get_object() with copy_from_user(),
so now an explicit offset alignment check is needed here. This avoids
later complications when unwinding the objects gets harder.

It is worth noting this check existed prior to commit 7a67a39320df
(“binder: add function to copy binder object from buffer”), likely
removed due to redundancy at the time.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/android/binder.c"
    ],
    "versions": [
      {
        "version": "c056a6ba35e0",
        "lessThan": "68a28f551e46",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "23e9d815fad8",
        "lessThan": "48a1f83ca9c6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "7a9ad4aceb02",
        "lessThan": "a2fd6dbc98be",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6d98eb95b450",
        "lessThan": "a6d2a8b211c8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6d98eb95b450",
        "lessThan": "1d7f1049035b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6d98eb95b450",
        "lessThan": "f01d66190457",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6d98eb95b450",
        "lessThan": "aaef73821a3b",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/android/binder.c"
    ],
    "versions": [
      {
        "version": "5.17",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.17",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.275",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.216",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.157",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.88",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.29",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.8",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

7.7

Confidence

High

EPSS

0

Percentile

10.3%