macOS Mojave Security Update 2021-004 broke kext for 3rd party apps

Hi All,


After installing macOS Mojave Security Update 2021-004, I had multiple apps fail to load, all with kext errors. Specifically, the following broke:

--VMware Fusion

--macFUSE

--VeraCrypt


Everything was working, I exited all apps, logged out, then logged into the Admin account, and started the security update install. When I finished the install and logged in again as a non-administrator, the apps wouldn't load. They also wouldn't load in an administrator account, either. Nor, when I tried to launch them via `open` as root, either.


Nothing showed up in Gatekeeper, so that is not the problem.


Noteworthy, neither Little Snitch or Micro Snitch broke.


So, I followed each app's instructions for uninstalling. Uninstalled each, rebooted, then reinstalled the apps. All three still had kext errors.


Next, I uninstalled the three apps again, rebooted, then rebooted again, this time into recovery mode and did a fresh install of Mojave 10.14.6 (without security update). Afterwards, I reinstalled the apps, and still had kext errors. Specifically, here are the first few lines of a crash dump.


The directory permissions for the directory path in question:

Also, the Staging directory is empty.


(The above is not all of the troubleshooting I have done, but a good summary of the facts. I have spent at least two or three solid days over the past few weeks troubleshooting this! I am not sure I could even recall all the things I have tried.)


I have been able to kludge the apps into working, by partially disabling SIP... specifically, disabling kext protections via:

csrutil disable
csrutil enable --without-kext


Also, reinstalling the latest security bundle did not fix (or further break) anything either.


So, why did first install of security bundle break kext?

And, why did a fresh reinstall of macOS not fix anything?

Finally, how do I fix this mess, once and for all, so I can fully reenable kext?


Thanks all!


H.U.

(No, not the Mongolian metal band!!)

Posted on Jul 21, 2021 5:40 PM

Reply

Similar questions

8 replies

Jul 31, 2021 4:12 PM in response to Remarks by Hacker Uno

Please post the EtreCheck report here using the "Additional Text" icon which looks like a piece of paper. What may seem insignificant to you may be highly significant to another contributor.


The fact that you can only use macOS with SIP disabled means you either have a corrupt OS and/or .plist file, a corrupt file system, or a third party app that is interfering with the normal operation of macOS, or the app/driver you are installing has a problem with this particular version of macOS. Is this Mac being managed by a school or business?


Without seeing an EtreCheck report there is little we can suggest other than performing a clean install of macOS by first erasing the whole physical drive and trying to manually reinstall these apps to see if they install and work properly. Do this before migrating from a backup. I can tell you from first hand personal experience that troubleshooting a Gatekeeper issue is difficult. I even used the command line to manually manipulate Gatekeeper without success. I ended up re-installing macOS to solve the issue. You may need to do the same.

Jul 21, 2021 7:55 PM in response to Remarks by Hacker Uno

Safe Boot, (holding Shift key down at startup), does the problem occur in Safe Mode? Could take 10 minutes.


Safe mode attempts to repair Disks & clears lots of caches & loads safe Drivers, & prevents loading of 3rd party extensions, so if Safe Mode works try again in regular boot.


EtreCheck is a FREE simple little diagnostic tool to display the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to help people help you with your Mac. It will not display any personal info.

https://www.etrecheck.com/


Pastebin is a good place to paste the whole report if you capture the URL while there…

https://pastebin.com/

Whew, they've changed pastebin & made it harder, but after pasting in, click Create new paste button, then Embed button, then copy the URL...

<script src="https://pastebin.com/embed_js/KuvnghqA"></script>


The important part of the above is...


https://pastebin.com/embed_js/KuvnghqA


Workable but harder for me to work with...the Note tool on the bottom of this editor's toolbar, as shown in the image, to copy and paste the output from EtreCheck. In a Reply before you click post, look for this to add longer texts...

Jul 31, 2021 12:57 PM in response to Remarks by Hacker Uno

More info.


Here is the sequence of events and screencaps to the errors.


1) Entered FS creds into VC and clicked "Mount" which gave me this prompt:



I clicked on the Open Prefs and was given the expected Sec&Priv screen, but without anything to grant permission to:



Simultaneous with Prefs opening, I get the following error on VeraCrypt:



The above is the sequence of events in the PasteBin log file.


Essentially the same error occurs with VMware Fusion, and they have a nearly day-long process to attempt to resolve it, which also fails. I will document that in another posting as soon as I can find time.


I appreciate everyone's help.


As said previously, the problem appears to be gatekeeper/kext and not the actual apps.


Reply to this posting if you need additional information or have a solution.


Also, I have rebooted numerous times, so I know that a reboot doesn't fix anything.


Thanks!


HU

Jul 31, 2021 12:36 PM in response to BDAqua

Sorry this has taken so long, but to debug I have to reconfig my working system (which has SIP ignore kext). [To clarify, when I installed the 2021-004 update, it broke with SIP fully enabled. I was able to continue running my apps by disabling SIP kext protection. All this debugging is with fully enabled SIP.]


I am going to provide updates as I complete collecting information.


I tried safe mode (with SIP fully enabled) and it made no difference.


I have clean-sweep deleted all the apps and reinstalled (was already at the latest version, and yes, I have verified the GPG sigs).


I installed update 2021-005 and it made no difference either.


The root of the problem APPEARS to be gatekeeper. I get a message from the apps to give perms in gatekeeper, but nothing shows up in gatekeeper.


Here is the pastebin URL containing the error https://pastebin.com/4aV5sB7i


I ran the free version of EtreCheck and it found nothing even remotely relevant. I paid for a version a couple years back, and I need to find my license key and see if it finds anything.


More info soon.

Jul 31, 2021 5:40 PM in response to HWTech

Yes, I as I said, I was planning to report it once I found and entered my license key.


Well, I found the key and ran the report. It is attached,


I should clarify a few things:


I don't run with SIP disabled. I have SIP enabled EXCEPT for kext protection.


I use TimeMachineEditor to control backups. Etre doesn't recognize that.


I manually install updates because I need to avoid downtime caused by bugs like whatever happened here.


The logs I pastebin-ed have "<private>" details revealed by turning off the log privacy feature, so I can see detailed problem information.


My system is not under MDM management. But, I do cybersecurity for a living, and I have a rather locked-down system. (But, nothing outside of Apple's guidelines except for disabling of iWork version control--using a method that Apple recognizes and properly operates with.


I have reinstalled macOS at least 3 times while troubleshooting this problem. Each reinstall costs me a day's time to get back up and running. To wipe the system clean and reinstall, would take me several weeks (when I migrated to this MBP, it took me over a month to get it set up the way my old Mac was).


One thing you may have questions about is the /etc/sysctl.conf. It has the following control added, because TM would sometimes run for hours if the system was being used at the same time. The setting enables TM to take a larger slice of the CPU:

# /private/etc/sysctl.conf
#
# When macOS updates, it may wipe the sysctl.conf file
#
# this setting disables throttling of TimeMachine, and a few other processes
debug.lowpri_throttle_enabled=0


Please let me know if you have any additional questions.


Thanks!


HU

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

macOS Mojave Security Update 2021-004 broke kext for 3rd party apps

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.