A kernel extension, commonly called a kext, is a bundle of code that macOS loads directly into the kernel, where it runs with the highest privileges of the operating system. Kexts historically supplied hardware drivers, file systems, network filters and security agents, and in macOS administration they remain a legacy component that must be explicitly approved before it can load.
Apple has deprecated third-party kernel extensions since macOS Catalina and steers developers toward system extensions, which run in user space. On current Macs, especially with Apple silicon, loading a kext requires reduced boot security, user consent and a restart, so administrators treat every remaining kext as a risk to manage rather than a routine install.
How a kernel extension works
A kext is a bundle with the .kext suffix containing a compiled binary and an Info.plist that declares its identifier, version and dependencies on kernel programming interfaces. Drivers built with the IOKit framework also list matching criteria, so the kernel loads them automatically when the corresponding hardware appears.
Once loaded, the code shares the kernel address space. It can access memory, hardware and system calls without the isolation that protects ordinary apps, which is why a single defect can cause a kernel panic and restart the whole Mac. A malicious kext can also bypass most security controls, which explains Apple’s strict signing and approval rules.
Since macOS Big Sur, kexts are no longer loaded one by one at runtime. The system builds kernel collections: a Boot Kernel Collection and a System Kernel Collection for Apple code, and an Auxiliary Kernel Collection for approved third-party kexts. Adding a new kext means rebuilding the auxiliary collection and restarting.
Kernel extension security controls by macOS version
Apple tightened kext rules in several distinct steps, and the version on a Mac determines which controls apply. The table summarizes the milestones administrators meet most often.
| macOS version | Change | Practical effect |
|---|---|---|
| High Sierra 10.13 | User-approved kernel extension loading | First load needs consent in security settings |
| Catalina 10.15 | Notarization and deprecation of many KPIs | Kexts must be notarized; system extensions introduced |
| Big Sur 11 | Kernel collections and deprecated KPIs blocked | Many older kexts stop loading by default |
| Apple silicon Macs | Full Security blocks third-party kexts | Reduced Security must be set in recoveryOS |
Every kext must be signed with a Developer ID certificate that Apple grants specifically for kexts, which ordinary developer accounts do not receive automatically. System Integrity Protection also prevents unsigned or modified kexts from loading, and disabling it to work around this is strongly discouraged on production Macs.
Kernel extensions compared with system extensions
System extensions are Apple’s replacement for most kext use cases. They run in user space as separate processes, so a crash affects only the extension, and they use narrowly scoped frameworks instead of raw kernel access.
| Aspect | Kernel extension | System extension |
|---|---|---|
| Execution space | Kernel space | User space |
| Failure impact | Kernel panic and restart | Extension process restarts |
| Frameworks | IOKit and kernel KPIs | DriverKit, Network Extension, Endpoint Security |
| Approval on Apple silicon | Reduced Security plus consent | User or MDM approval only |
| Activation | Restart required | Usually no restart |
| Apple status | Deprecated | Recommended |
Antivirus and endpoint detection tools moved to Endpoint Security, VPN and content filters to Network Extension, and many USB, serial and audio drivers to DriverKit. Remaining kexts are typically specialized hardware drivers, older virtualization software or file systems without a user-space alternative.
Managing kernel extensions with MDM
In managed fleets, administrators approve kexts with the Kernel Extension Policy payload in a configuration profile. The payload lists allowed Team IDs and, optionally, specific bundle identifiers, which removes the consent prompt on enrolled Macs.
| Situation | Recommended action | Reason |
|---|---|---|
| Vendor offers a system extension | Deploy the system extension | Avoids reduced security and restarts |
| Kext is unavoidable | Approve by Team ID and bundle ID | Narrowest practical allowlist |
| Apple silicon fleet | Plan Reduced Security per device | Policy change needs recoveryOS access |
| Unknown kext found loaded | Investigate and remove | Kernel code has unrestricted access |
On Intel Macs, the payload alone is usually enough. On Apple silicon, the security policy must first be lowered to Reduced Security with user management of kernel extensions allowed, which normally requires physical or authorized access to recoveryOS; the bootstrap token helps MDM authorize kext loading on supported versions. The kmutil showloaded command lists loaded extensions and replaces the older kextstat tool.
Risks and common mistakes
Kernel extensions concentrate stability, security and upgrade risk in a single component. The following mistakes appear frequently in support cases.
- Approving a whole Team ID when only one bundle is needed, which silently allows any future kext from that vendor.
- Upgrading macOS before vendor support, which leaves a kext blocked and the related hardware or software unusable.
- Disabling System Integrity Protection to load an unsigned kext instead of obtaining a signed build.
- Leaving Reduced Security in place after the kext has been retired, which weakens boot protection without benefit.
- Ignoring repeated kernel panics whose reports name a third-party kext identifier.
A sound policy is to inventory every kext, ask each vendor for a system extension roadmap and set a retirement date for the remainder.
Major macOS upgrades deserve dedicated kext testing on a pilot group before broad release. Because the auxiliary kernel collection is rebuilt during an upgrade, a kext that loaded yesterday may be rejected after the update if it relies on interfaces Apple has removed. Testing early gives vendors time to ship a fixed build and prevents a fleet-wide outage of the hardware or software that depends on the extension.
Put simply
The kernel is the core of the Mac. It controls memory, hardware and every running app. A kernel extension is extra code placed inside that core. It can add a driver for a special device or a new kind of disk format.
Because it sits in the core, a bug in it can crash the whole computer. Bad code there can also see almost everything. That is why Apple now prefers safer add-ons that run outside the core. Today, kernel extensions need special approval and are used only when nothing else works.
In practice
A university media lab runs 40 Apple silicon Macs connected to professional audio interfaces whose driver still ships as a kernel extension. The IT team cannot avoid it until the vendor finishes a DriverKit version, so it plans a controlled rollout.
Technicians boot each Mac into recoveryOS once and set Reduced Security with user management of kernel extensions allowed. The MDM then deploys a Kernel Extension Policy payload limited to the vendor’s Team ID and the single driver bundle identifier. After one restart, kmutil showloaded confirms the driver on every Mac. When the vendor releases its DriverKit driver eight months later, the team removes the kext, deletes the payload and returns all machines to Full Security.