Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
This project is mirrored from https://github.com/LineageOS/android_frameworks_av. Pull mirroring updated .
  1. Jan 28, 2022
  2. Jan 09, 2022
  3. Dec 19, 2021
  4. Dec 16, 2021
  5. Nov 12, 2021
  6. Oct 08, 2021
  7. Aug 17, 2021
  8. Jun 10, 2021
  9. May 05, 2021
  10. Apr 09, 2021
    • android-build-team Robot's avatar
      Merge cherrypicks of [14132525, 14131687] into security-aosp-pi-release · 46792d9b
      android-build-team Robot authored
      Change-Id: I5f2224e5ad09bf454950b5fb823600b97edd8afa
      46792d9b
    • Edwin Wong's avatar
      [RESTRICT AUTOMERGE] Fix clearkey CryptoPlugin use after free vulnerability. · ac2858d6
      Edwin Wong authored
      The shared memory buffer used by srcPtr can be freed by another
      thread because it is not protected by a mutex. Subsequently,
      a use after free AIGABRT can occur in a race condition.
      
      SafetyNet logging is not added to avoid log spamming. The
      mutex lock is called to setup for decryption, which is
      called frequently.
      
      The crash was reproduced on the device before the fix.
      Verified the test passes after the fix.
      
      Test: sts
        sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176495665#testPocBug_176495665
      
      Test: push to device with target_hwasan-userdebug build
        adb shell /data/local/tmp/Bug-176495665_sts64
      
      Bug: 176495665
      Bug: 176444161
      Change-Id: Ie6e73804d8b764e53b1bd7a16cfbf04b4f3669b9
      (cherry picked from commit 7a398e72)
      ac2858d6
  11. Apr 08, 2021
    • android-build-team Robot's avatar
      Merge cherrypicks of [14126781, 14126782, 14127202, 14128466, 14127516,... · e183d9f4
      android-build-team Robot authored
      Merge cherrypicks of [14126781, 14126782, 14127202, 14128466, 14127516, 14128057, 14127204, 14128747, 14128708, 14128059, 14128686, 14128127, 14128507, 14128809, 14128810, 14128811, 14128812] into security-aosp-pi-release
      
      Change-Id: Id0ac10a19c8eadc98092a7e6fab88c7cdd7e88df
      e183d9f4
    • Edwin Wong's avatar
      [RESTRICT AUTOMERGE] Fix possible uaf of play policy state · 91324850
      Edwin Wong authored
      Access to the play policy state may happen after
      the state is freed in a race condition, which will
      result in a SIGARBT.
      
      SafetyNet logging is not added to avoid log spamming.
      queryKeyStatus can be called often.
      
      The crash was reproduced on the device before the fix.
      Verified the test passes after the fix.
      
      Test: sts-tradefed
        sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176486806#testPocBug_176486806
      
      Test: push to device with target_hwasan-userdebug build
        adb shell /data/local/tmp/Bug-17648680664
      
      Test: sts-tradefed
        sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176444154#testPocBug_176444154
      
      Test: push to device with target_hwasan-userdebug build
        adb shell /data/local/tmp/Bug-17644415464
      
      Bug: 176444154
      Bug: 176486806
      Change-Id: I07cc93c255942d56e866d0b08fb786f154f6e0d3
      (cherry picked from commit e11a4819)
      91324850
    • Edwin Wong's avatar
      [RESTRICT AUTOMERGE] Fix potential decrypt destPtr overflow. · 91f4cef3
      Edwin Wong authored
      There is a potential integer overflow to bypass the
      destination base size check in decrypt. The destPtr
      can then point to the outside of the destination buffer.
      
      Test: sts-tradefed
        sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176444622#testPocBug_176444622
      
      Test: push to device with target_hwasan-userdebug build
        adb shell /data/local/tmp/Bug-17644462264
      
      Bug: 176444622
      Bug: 176496353
      Change-Id: I38e25c63c67b8acfa69649cc906483430da2ead6
      (cherry picked from commit a44d2447)
      91f4cef3
  12. Apr 07, 2021
  13. Mar 11, 2021
  14. Feb 15, 2021
    • zakooz's avatar
      ACodec: Fix video autoscaling on old OMX decoders · b3145b99
      zakooz authored and Jan Altensen's avatar Jan Altensen committed
      To enable: TARGET_OMX_LEGACY_RESCALING := true
      
      On Android N video autoscaling will cause the video to zoom in, being mostly outside of the frame of the video.
      This is because android no longer tries to match output ports before putting the new resolution in effect.
      Exynos OMX decoders send a message to get the new output crop, but it's lost along the way.
      Similarly to how Android M handles it, send the format change right before transitioning to ExecutingState.
      
      Change-Id: I19f974d37f9b11161efc7ee470301f444691fde6
      (cherry picked from commit a3daed99)
      b3145b99
  15. Feb 05, 2021
    • Edwin Wong's avatar
      Fix double free of play policy in a race condition. · 88ad2719
      Edwin Wong authored
      The mPlayPolicy can be freed twice if there is a race condition.
      mPlayPolicy should be protected with a mutex lock.
      
      SafetyNet logging is not added to avoid log spamming. The
      mutex lock is called whenever a license request is made.
      That can happen quite often.
      
      Bug: 176168330
      
      Test: sts-tradefed
        sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases -t android.security.sts.Poc21_01#testPocBug_176168330
      
      Test: run sts test on master build
        run sts test from http://go/ag/13308312
      
      Change-Id: Ibc338e0a98293807dbf12500f7e82e62b6c4a04a
      (cherry picked from commit 537144f7)
      88ad2719
    • Edwin Wong's avatar
      [RESTRICT AUTOMERGE] Fix potential decrypt srcPtr overflow. · 6b810d6f
      Edwin Wong authored
      There is a potential integer overflow to bypass the
      source base size check in decrypt. The source pointer
      can then point to the outside of the source buffer,
      which could potentially leak arbitrary memory content
      to destination pointer.
      
      Test: sts-tradefed
        sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Bug_176496160#testPocBug_176496160
      
      Test: push to device with target_hwasan-userdebug build
        adb shell /data/local/tmp/Bug-17649616064
      
      Bug: 176496160
      Bug: 176444786
      Change-Id: Iea3dcd44d0f4f61de3288ed1e26d8bd5e39115d2
      (cherry picked from commit a7dd68bd)
      6b810d6f
  16. Jan 14, 2021
  17. Jan 12, 2021
  18. Nov 12, 2020
  19. Sep 09, 2020
  20. Aug 03, 2020
  21. Jun 30, 2020
    • Robert Shih's avatar
      clearkey hidl: fix oob read in decrypt · fb027a5e
      Robert Shih authored
      Validate sum of subsample sizes do not overrun source buffer.
      
      Bug: 154123412
      Test: poc_CryptoPlugin_cpp_183
      Test: MediaDrmClearkeyTest
      Test: NativeMediaDrmClearkeyTest
      Change-Id: I27b05479202e0caedfd052c683aa1ef187f65679
      Merged-In: I27b05479202e0caedfd052c683aa1ef187f65679
      (cherry picked from commit fa3781fe)
      fb027a5e
  22. Jun 04, 2020
    • Andrew Lewis's avatar
      Fix potential use-after-free issue · 9ed3872b
      Andrew Lewis authored
      NuPlayerListener passed this out of its constructor to
      IStreamSource->setListener, and it would get wrapped in a smart pointer,
      then free'd when that method returned.
      
      Move the setListener call after instantiation of NuPlayerListener to
      avoid passing this out of the NuPlayerListener constructor.
      
      Test: tested in presubmit
      Bug: 151456667
      Change-Id: I996d9ad9eaf0e52992b7f9e10fd94a94c350ad73
      (cherry picked from commit aad519df)
      (cherry picked from commit 6aaef5a9)
      9ed3872b
    • Ray Essick's avatar
      Expand nuplayer mutex for mediametrics management · 1b848072
      Ray Essick authored
      refactor some mutex for how nuplayer sets up mediametrics data.
      expanded locking to eliminate a couple race conditions.
      
      Bug: 151644303
      Bug: 151643722
      Test: poc attached to bugs
      Merged-In: I75f29a6254c5eab5d4f524ee7a7ef59f93a0b405
      Merged-In: Ia2e68ef616e249a6e8746b9068f22bd208a0ffc8
      Change-Id: I1e9bbcd67a1510f70fad66e8ef77f529008e248a
      (cherry picked from commit 86b46a20)
      1b848072
    • Harish Mahendrakar's avatar
      m4v_h263: Return error for zero width and height · 8f5077f7
      Harish Mahendrakar authored
      Test: poc in bug
      Bug: 152496149
      Bug: 152629190
      
      Change-Id: I07293e97b664e03e29a1392b139132fc137361cd
      (cherry picked from commit 5d8def9a)
      8f5077f7
  23. May 05, 2020
  24. Apr 09, 2020
    • Yin-Chia Yeh's avatar
      RESTRICT AUTOMERGE: Camera: fix use after free in sensor timestamp · 5c06c66e
      Yin-Chia Yeh authored
      The metadata object might be overriden later and has it memory
      re-allocated; hence snaping the sensor timestamp value before
      we call into any method that might change the metadata.
      
      Test: build
      Bug: 150944913
      Merged-In: I5b10b680e0cce96ca49e1772770adb4835545472
      Change-Id: I5b10b680e0cce96ca49e1772770adb4835545472
      (cherry picked from commit 1859a38c)
      5c06c66e
  25. Apr 07, 2020
  26. Mar 12, 2020
    • Robert Shih's avatar
      BnCrypto: fix use-before-init in CREATE_PLUGIN · 48aad4d8
      Robert Shih authored
      Bug: 144767096
      Test: poc_ICrypto_283
      Merged-In: Id67dc9e793ee886e4cc49370d800c7f3580df313
      Merged-In: I81ff7cde5e1693f05c90380e879f74d0c4bce5f1
      Change-Id: If268553440b8a0cbbe011b5396974fd864a7d083
      (cherry picked from commit 4bbfb6d8)
      48aad4d8
  27. Feb 06, 2020
    • Edwin Wong's avatar
      [DO NOT MERGE] Fix heap buffer overflow in clearkey CryptoPlugin::decrypt · 7f071495
      Edwin Wong authored
      Fix destPtr was not pointing to destination raw pointer.
      
      bug: 144506242
      
      Test: sts
        ANDROID_BUILD_TOP= ./android-sts/tools/sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Poc19_12#testPocBug_144506242
      
      Change-Id: I9425baa21c82d5a5edf37c87989adbade0428b67
      (cherry picked from commit dc4c427b)
      7f071495
    • Edwin Wong's avatar
      [DO NOT MERGE] Fix heap buffer overflow for releaseSecureStops. · f0364ba2
      Edwin Wong authored
      If the input SecureStopRelease size is less than sizeof(uint32_t)
      in releaseSecureStops(), an out of bound read will occur.
      
      bug: 144766455
      bug: 144746235
      bug: 147281068
      
      Test: sts
      ANDROID_BUILD_TOP= ./android-sts/tools/sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases --test android.security.sts.Poc19_11#testPocBug_144766455
      
      Change-Id: I050504c1ef4e5c41fb47ee97e98db41399288a91
      (cherry picked from commit 2587ab6c)
      f0364ba2
  28. Dec 03, 2019
Loading