FKIE_CVE-2026-99833

Vulnerability from fkie_nvd - Published: 2026-11-30 14:20 - Updated: 2026-11-30 14:20
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix query_data() output overlapping the lookup key In query_data(), buf and query point into the same multi_transaction buffer: buf at the start, query a few bytes in, and the lookup key right after the label string that query points to. Reusing the buffer is by design and is safe as long as the query is fully parsed before buf is written to, but the key is not: it is dereferenced on every iteration of label_for_each_confined(), after output has already been written. So when the label has more than one profile with a data table, the data of the first matching profile is written to buf while the key is still needed, and overwrites it if the data is large enough. The later lookups then run on a corrupted key. Besides, if the data has no NUL byte from the key's position to the end of the allocation, strhash() -> strlen() -> jhash() reads past the 4096-byte slab object, triggering an out-of-bound read: BUG: KASAN: slab-out-of-bounds in jhash+0x595/0x5e0 Read of size 1 at addr ff1100001159d000 by task exploit/155 CPU: 0 UID: 1000 PID: 155 Comm: exploit Not tainted 7.3.0-rc7 #1 Call Trace: jhash+0x595/0x5e0 aa_write_access+0x880/0x1400 vfs_write+0x26f/0xd20 ksys_write+0x115/0x210 Writing to the .access file is unprivileged (0666), but triggering this requires loaded profiles that carry a data table, which needs CAP_MAC_ADMIN and is not the case on default distribution policies. Fix by copying the key with kstrdup() before writing any output to buf, so the key stays valid across all loop iterations regardless of what gets written to the overlapping buffer.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/apparmorfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "decf312cdffb13c2c3b5d5217ae7d85e45150f88",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "e4c6ebf03802ee9e6de2be36d231462d30d49fb0",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "cddbf0c270b7bb2b21deb7dbcffd9802be23da4f",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "54f911b9c19582927c932b809e693db840b97e3e",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "f2143b4ecaf6afb81a785b6bf976274e16e58997",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "ff9f9a86b5b3e0942a96b6a1f91ed074090203c7",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "64d601ac18874892cb96bf81dab1fedfe77f41df",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            },
            {
              "lessThan": "d30844001360a403a511cf24fc75ecaa6a7a7544",
              "status": "affected",
              "version": "317d9a054e1c6d5f18b02b99ce09911942f8e603",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/apparmorfs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.13"
            },
            {
              "lessThan": "4.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix query_data() output overlapping the lookup key\n\nIn query_data(), buf and query point into the same multi_transaction\nbuffer: buf at the start, query a few bytes in, and the lookup key\nright after the label string that query points to. Reusing the buffer\nis by design and is safe as long as the query is fully parsed before\nbuf is written to, but the key is not: it is dereferenced on every\niteration of label_for_each_confined(), after output has already been\nwritten. So when the label has more than one profile with a data\ntable, the data of the first matching profile is written to buf while\nthe key is still needed, and overwrites it if the data is large enough.\nThe later lookups then run on a corrupted key. Besides, if the data has\nno NUL byte from the key\u0027s position to the end of the allocation,\nstrhash() -\u003e strlen() -\u003e jhash() reads past the 4096-byte slab object,\ntriggering an out-of-bound read:\n\n  BUG: KASAN: slab-out-of-bounds in jhash+0x595/0x5e0\n  Read of size 1 at addr ff1100001159d000 by task exploit/155\n  CPU: 0 UID: 1000 PID: 155 Comm: exploit Not tainted 7.3.0-rc7 #1\n  Call Trace:\n   jhash+0x595/0x5e0\n   aa_write_access+0x880/0x1400\n   vfs_write+0x26f/0xd20\n   ksys_write+0x115/0x210\n\nWriting to the .access file is unprivileged (0666), but triggering this\nrequires loaded profiles that carry a data table, which needs\nCAP_MAC_ADMIN and is not the case on default distribution policies.\n\nFix by copying the key with kstrdup() before writing any output to buf,\nso the key stays valid across all loop iterations regardless of what\ngets written to the overlapping buffer."
    }
  ],
  "id": "CVE-2026-99833",
  "lastModified": "2026-11-30T14:20:16.143",
  "metrics": {},
  "published": "2026-11-30T14:20:16.143",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/54f911b9c19582927c932b809e693db840b97e3e"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/64d601ac18874892cb96bf81dab1fedfe77f41df"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/cddbf0c270b7bb2b21deb7dbcffd9802be23da4f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/d30844001360a403a511cf24fc75ecaa6a7a7544"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/decf312cdffb13c2c3b5d5217ae7d85e45150f88"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/e4c6ebf03802ee9e6de2be36d231462d30d49fb0"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/f2143b4ecaf6afb81a785b6bf976274e16e58997"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/ff9f9a86b5b3e0942a96b6a1f91ed074090203c7"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.