Skip to content
Heist/ feed
Back to feed
UnratedFix available

bna: ensure the copied buf is NUL terminated

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: bna: ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.314, 5.10.217, 5.15.159, 5.4.276, 6.1.91, 6.6.31, 6.8.10
CVEs
CVE-2024-36934
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:16 UTC · Revision 1

Source evidence

bna: ensure the copied buf is NUL terminated

core-osv · Original source

Published 30 May 2024, 15:29 UTC

In the Linux kernel, the following vulnerability has been resolved: bna: ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.

osv:CVE-2024-36934

Kernel

Fixed versions: 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10

Complete source record
{
  "id": "6ece5d227ffddadbb98d258fab8b49d6c372f94f0de0c8d9339a9892c97223de",
  "url": "https://osv.dev/vulnerability/CVE-2024-36934",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "bna: ensure the copied buf is NUL terminated",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: bna: ensure the copied buf is NUL terminated Currently, we allocate a nbytes-sized kernel buffer and copy nbytes from userspace to that buffer. Later, we use sscanf on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using sscanf. Fix this issue by using memdup_user_nul instead of memdup_user.",
    "evidence": "osv:CVE-2024-36934",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.314",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.276",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.217",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.159",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.91",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.31",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-36934",
      "aliases": [
        "CVE-2024-36934"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7afc5dbde09104b023ce04465ba71aaba0fc4346"
                },
                {
                  "fixed": "bd502ba81cd1d515deddad7dbc6b812b14b97147"
                },
                {
                  "fixed": "80578ec10335bc15ac35fd1703c22aab34e39fdd"
                },
                {
                  "fixed": "6f0f19b79c085cc891c418b768f26f7004bd51a4"
                },
                {
                  "fixed": "0f560240b4cc25d3de527deb257cdf072c0102a9"
                },
                {
                  "fixed": "06cb37e2ba6441888f24566a997481d4197b4e32"
                },
                {
                  "fixed": "e19478763154674c084defc62ae0d64d79657f91"
                },
                {
                  "fixed": "1518b2b498a0109eb6b15755169d3b6607356b35"
                },
                {
                  "fixed": "8c34096c7fdf272fd4c0c37fe411cd2e3ed0ee9f"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36934.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.3.0"
                },
                {
                  "fixed": "4.19.314"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.276"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.217"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.159"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.91"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.31"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.8.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36934.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.537412210Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-613116.html",
        "https://git.kernel.org/stable/c/06cb37e2ba6441888f24566a997481d4197b4e32",
        "https://git.kernel.org/stable/c/0f560240b4cc25d3de527deb257cdf072c0102a9",
        "https://git.kernel.org/stable/c/1518b2b498a0109eb6b15755169d3b6607356b35",
        "https://git.kernel.org/stable/c/6f0f19b79c085cc891c418b768f26f7004bd51a4",
        "https://git.kernel.org/stable/c/80578ec10335bc15ac35fd1703c22aab34e39fdd",
        "https://git.kernel.org/stable/c/8c34096c7fdf272fd4c0c37fe411cd2e3ed0ee9f",
        "https://git.kernel.org/stable/c/bd502ba81cd1d515deddad7dbc6b812b14b97147",
        "https://git.kernel.org/stable/c/e19478763154674c084defc62ae0d64d79657f91",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36934.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-36934",
        "https://security.netapp.com/advisory/ntap-20240912-0007/",
        "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/36xxx/CVE-2024-36934.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-36934",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 490813,
  "published_at": "2024-05-30T15:29:24.357+00:00"
}