)]}'
{
  "commit": "35f25e085d2437c644e09ea03c6710bbf711481f",
  "tree": "171130d8f4d488a2c97492efb14216ed88e1dd31",
  "parents": [
    "cb2a70cd852b6cbeb4386055554ddb62cfcec439"
  ],
  "author": {
    "name": "John Johansen",
    "email": "john.johansen@canonical.com",
    "time": "Fri Oct 17 01:53:00 2025 -0700"
  },
  "committer": {
    "name": "Robert Kolchmeyer",
    "email": "rkolchmeyer@google.com",
    "time": "Fri Mar 13 13:34:30 2026 -0700"
  },
  "message": "apparmor: fix differential encoding verification\n\ncommit 39440b137546a3aa383cfdabc605fb73811b6093 upstream.\n\nDifferential encoding allows loops to be created if it is abused. To\nprevent this the unpack should verify that a diff-encode chain\nterminates.\n\nUnfortunately the differential encode verification had two bugs.\n\n1. it conflated states that had gone through check and already been\n   marked, with states that were currently being checked and marked.\n   This means that loops in the current chain being verified are treated\n   as a chain that has already been verified.\n\n2. the order bailout on already checked states compared current chain\n   check iterators j,k instead of using the outer loop iterator i.\n   Meaning a step backwards in states in the current chain verification\n   was being mistaken for moving to an already verified state.\n\nMove to a double mark scheme where already verified states get a\ndifferent mark, than the current chain being kept. This enables us\nto also drop the backwards verification check that was the cause of\nthe second error as any already verified state is already marked.\n\nBUG\u003dNone\nTEST\u003dpresubmit\nRELEASE_NOTE\u003dFixed the \"CrackArmor\" vulnerability in the Linux kernel.\n\ncos-patch: security-high\nFixes: 031dcc8f4e84 (\"apparmor: dfa add support for state differential encoding\")\nReported-by: Qualys Security Advisory \u003cqsa@qualys.com\u003e\nTested-by: Salvatore Bonaccorso \u003ccarnil@debian.org\u003e\nReviewed-by: Georgia Garcia \u003cgeorgia.garcia@canonical.com\u003e\nReviewed-by: Cengiz Can \u003ccengiz.can@canonical.com\u003e\nChange-Id: I9dfaee7a1c4378889c09ea074a39ec4dd985e4fe\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 34fc60b125ed1d4eb002c76b0664bf0619492167)\nSigned-off-by: Robert Kolchmeyer \u003crkolchmeyer@google.com\u003e\nReviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/137849\nTested-by: Cusky Presubmit Bot \u003cpresubmit@cos-infra-prod.iam.gserviceaccount.com\u003e\nReviewed-by: He Gao \u003chegao@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dfc93631b43d8751a8b3fd58e175f4c9dfe37be0",
      "old_mode": 33188,
      "old_path": "security/apparmor/include/match.h",
      "new_id": "14c0401f97c1b3b25d4d5d236b0da72ffa9b4d62",
      "new_mode": 33188,
      "new_path": "security/apparmor/include/match.h"
    },
    {
      "type": "modify",
      "old_id": "9b1d56f6abcb0bcaad262b7d605db8933b20602a",
      "old_mode": 33188,
      "old_path": "security/apparmor/match.c",
      "new_id": "4e3ada0e7461f95f4ab8e93593e7002b8f7d4668",
      "new_mode": 33188,
      "new_path": "security/apparmor/match.c"
    }
  ]
}
