Kernel extension

Also known as: kext

On this page 7

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 versionChangePractical effect
High Sierra 10.13User-approved kernel extension loadingFirst load needs consent in security settings
Catalina 10.15Notarization and deprecation of many KPIsKexts must be notarized; system extensions introduced
Big Sur 11Kernel collections and deprecated KPIs blockedMany older kexts stop loading by default
Apple silicon MacsFull Security blocks third-party kextsReduced Security must be set in recoveryOS
Kext policy milestones

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.

AspectKernel extensionSystem extension
Execution spaceKernel spaceUser space
Failure impactKernel panic and restartExtension process restarts
FrameworksIOKit and kernel KPIsDriverKit, Network Extension, Endpoint Security
Approval on Apple siliconReduced Security plus consentUser or MDM approval only
ActivationRestart requiredUsually no restart
Apple statusDeprecatedRecommended
Kext and system extension comparison

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.

SituationRecommended actionReason
Vendor offers a system extensionDeploy the system extensionAvoids reduced security and restarts
Kext is unavoidableApprove by Team ID and bundle IDNarrowest practical allowlist
Apple silicon fleetPlan Reduced Security per devicePolicy change needs recoveryOS access
Unknown kext found loadedInvestigate and removeKernel code has unrestricted access
Kext management decisions

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.