)]}'
{
  "commit": "c3533fa331521e251ae6a4ca981332603400cf4c",
  "tree": "1c3d1a7a9dd08fb844b525f45ff10e4bf8060cb2",
  "parents": [
    "bd79687428decd954cbe740093246fa1c407e01a"
  ],
  "author": {
    "name": "Duy Truong",
    "email": "duytruong@google.com",
    "time": "Sun Jun 07 02:28:08 2026 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Wed Sep 02 23:43:41 2026 -0700"
  },
  "message": "Clean up ownership transfer metadata on user removal\n\nA malicious profile owner can exploit a TOCTOU race condition during transferOwnership() to leave a stale, device-global metadata file pointing to their own profile. By subsequently wiping its own profile, the attacker causes an unguarded boot-time revert attempt that throws an uncaught exception, leading to a permanent system_server crash loop (persistent DoS).\n\nThis commit addresses the vulnerability by ensuring the ownership transfer metadata file is deleted when the associated user is removed. In `DevicePolicyManagerService#removeUserData()`, the system now checks if the metadata file exists and matches the ID of the user being removed. If so, the file is deleted, tying the journal\u0027s lifetime to the user and preventing the boot-time crash loop.\n\nTest: m services \u0026\u0026 atest FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest\n\nBug: 515039372\nFlag: EXEMPT BUGFIX\nThis was autogenerated by MendIt (go/androidmendit)\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:611b45aa58842575af3ffd0c34472e5456062900\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:cfc2067289c2889a3ee337ed9c795c25d3e64988\nMerged-In: I6323b1cbbf068d0939fd1d7f98662326482b5824\nChange-Id: I6323b1cbbf068d0939fd1d7f98662326482b5824\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bb38ebedb6bf59225df3facdc9ece3426548b50c",
      "old_mode": 33188,
      "old_path": "services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java",
      "new_id": "5750cf8515ea0413dffa30ecbba92356a3e41e4b",
      "new_mode": 33188,
      "new_path": "services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java"
    }
  ]
}
