)]}'
{
  "commit": "f40c5185673324fa89246a36e841f7ce4122529f",
  "tree": "91a7b3dde923add002e2799b4d2589a46a94b750",
  "parents": [
    "788442759dc44b6a55f4b69ee2c1aaaf306b3f65"
  ],
  "author": {
    "name": "John Johansen",
    "email": "john.johansen@canonical.com",
    "time": "Tue Feb 24 10:20:02 2026 -0800"
  },
  "committer": {
    "name": "Cloud Image Release",
    "email": "cloud-image-release@prod.google.com",
    "time": "Fri Mar 13 22:11:37 2026 -0700"
  },
  "message": "apparmor: fix race on rawdata dereference\n\ncommit a0b7091c4de45a7325c8780e6934a894f92ac86b upstream.\n\nThere is a race condition that leads to a use-after-free situation:\nbecause the rawdata inodes are not refcounted, an attacker can start\nopen()ing one of the rawdata files, and at the same time remove the\nlast reference to this rawdata (by removing the corresponding profile,\nfor example), which frees its struct aa_loaddata; as a result, when\nseq_rawdata_open() is reached, i_private is a dangling pointer and\nfreed memory is accessed.\n\nThe rawdata inodes weren\u0027t refcounted to avoid a circular refcount and\nwere supposed to be held by the profile rawdata reference.  However\nduring profile removal there is a window where the vfs and profile\ndestruction race, resulting in the use after free.\n\nFix this by moving to a double refcount scheme. Where the profile\nrefcount on rawdata is used to break the circular dependency. Allowing\nfor freeing of the rawdata once all inode references to the rawdata\nare put.\n\nBUG\u003dNone\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed the \"CrackArmor\" vulnerability in the Linux kernel.\n\ncos-patch: security-high\nFixes: 5d5182cae401 (\"apparmor: move to per loaddata files, instead of replicating in profiles\")\nReported-by: Qualys Security Advisory \u003cqsa@qualys.com\u003e\nReviewed-by: Georgia Garcia \u003cgeorgia.garcia@canonical.com\u003e\nReviewed-by: Maxime Bélair \u003cmaxime.belair@canonical.com\u003e\nReviewed-by: Cengiz Can \u003ccengiz.can@canonical.com\u003e\nTested-by: Salvatore Bonaccorso \u003ccarnil@debian.org\u003e\nChange-Id: I8077a29654c3997104d65154bbfeb040cca672d7\nSigned-off-by: John Johansen \u003cjohn.johansen@canonical.com\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n(cherry picked from commit f9761add6d100962a23996cb68f3d6abdd4d1815)\nSigned-off-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/137870\nReviewed-by: He Gao \u003chegao@google.com\u003e\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nMain-Branch-Verified: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/137990\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c708f0bfe59490f4c846919a9b5bc6ff082f252d",
      "old_mode": 33188,
      "old_path": "security/apparmor/apparmorfs.c",
      "new_id": "45f44978537e7fd24168c3525a68c0c68cf60300",
      "new_mode": 33188,
      "new_path": "security/apparmor/apparmorfs.c"
    },
    {
      "type": "modify",
      "old_id": "a6f4611ee50cf9e15b348cf10467458c2a02fe9d",
      "old_mode": 33188,
      "old_path": "security/apparmor/include/policy_unpack.h",
      "new_id": "4f800fbb805a5b50f037141e31683fdf609c26c1",
      "new_mode": 33188,
      "new_path": "security/apparmor/include/policy_unpack.h"
    },
    {
      "type": "modify",
      "old_id": "29f1cfd75090cde44c77c858a36a88390c4d8f0c",
      "old_mode": 33188,
      "old_path": "security/apparmor/policy.c",
      "new_id": "b5ae0314b3844c25faf1e8aecf16b0951b37d651",
      "new_mode": 33188,
      "new_path": "security/apparmor/policy.c"
    },
    {
      "type": "modify",
      "old_id": "0232fc29a234e3c04ff182dd91cf6b6a8bd2bba9",
      "old_mode": 33188,
      "old_path": "security/apparmor/policy_unpack.c",
      "new_id": "36175b99914b7eb9b1e6c0d9c870778310651fc0",
      "new_mode": 33188,
      "new_path": "security/apparmor/policy_unpack.c"
    }
  ]
}
