{
  "id": "CVE-2025-38538",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38538",
  "published_at": "2025-08-16T11:12:30.878Z",
  "title": "dmaengine: nbpfaxi: Fix memory corruption in probe()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: nbpfaxi: Fix memory corruption in probe()\n\nThe nbpf-\u003echan[] array is allocated earlier in the nbpf_probe() function\nand it has \"num_channels\" elements.  These three loops iterate one\nelement farther than they should and corrupt memory.\n\nThe changes to the second loop are more involved.  In this case, we're\ncopying data from the irqbuf[] array into the nbpf-\u003echan[] array.  If\nthe data in irqbuf[i] is the error IRQ then we skip it, so the iterators\nare not in sync.  I added a check to ensure that we don't go beyond the\nend of the irqbuf[] array.  I'm pretty sure this can't happen, but it\nseemed harmless to add a check.\n\nOn the other hand, after the loop has ended there is a check to ensure\nthat the \"chan\" iterator is where we expect it to be.  In the original\ncode we went one element beyond the end of the array so the iterator\nwasn't in the correct place and it would always return -EINVAL.  However,\nnow it will always be in the correct place.  I deleted the check since\nwe know the result.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c 84fff8e6f11b9af1407e273995b5257d99ff0cff",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c aec396b4f736f3f8d2c28a9cd2924a4ada57ae87",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c 24861ef8b517a309a4225f2793be0cd8fa0bec9e",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c f366b36c5e3ce29c9a3c8eed3d1631908e4fc8bb",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c 4bb016438335ec02b01f96bf1367378c2bfe03e5",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c 122160289adf8ebf15060f1cbf6265b55a914948",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c d6bbd67ab5de37a74ac85c83c5a26664b62034dd",
          "\u003e= b45b262cefd5b8eb2ba88d20e5bd295881293894, \u003c 188c6ba1dd925849c5d94885c8bbdeb0b3dcf510"
        ],
        "fixed_in": [
          "84fff8e6f11b9af1407e273995b5257d99ff0cff",
          "aec396b4f736f3f8d2c28a9cd2924a4ada57ae87",
          "24861ef8b517a309a4225f2793be0cd8fa0bec9e",
          "f366b36c5e3ce29c9a3c8eed3d1631908e4fc8bb",
          "4bb016438335ec02b01f96bf1367378c2bfe03e5",
          "122160289adf8ebf15060f1cbf6265b55a914948",
          "d6bbd67ab5de37a74ac85c83c5a26664b62034dd",
          "188c6ba1dd925849c5d94885c8bbdeb0b3dcf510"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.17"
        ],
        "fixed_in": [
          "0",
          "5.4.297",
          "5.10.241",
          "5.15.190",
          "6.1.147",
          "6.6.100",
          "6.12.40",
          "6.15.8",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 84fff8e6f11b9af1407e273995b5257d99ff0cff or aec396b4f736f3f8d2c28a9cd2924a4ada57ae87 or 24861ef8b517a309a4225f2793be0cd8fa0bec9e or f366b36c5e3ce29c9a3c8eed3d1631908e4fc8bb or 4bb016438335ec02b01f96bf1367378c2bfe03e5 or 122160289adf8ebf15060f1cbf6265b55a914948 or d6bbd67ab5de37a74ac85c83c5a26664b62034dd or 188c6ba1dd925849c5d94885c8bbdeb0b3dcf510 or later.",
      "Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.147 or 6.6.100 or 6.12.40 or 6.15.8 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
