AWS Security ChangesHomeSearch

AWS linux high security documentation change

Service: linux · 2026-03-07 · Security-related high

File: linux/al2023/ug/kernel-update.md

Summary

Updated documentation to add support for kernel 6.18, improve kernel upgrade/downgrade procedures, and restructure content. Added details about Attack Vector Controls for CPU vulnerability mitigations and annual kernel updates.

Security assessment

Explicitly mentions security improvements in kernel 6.18 including 'Attack Vector Controls for managing CPU vulnerability mitigations'. This indicates documentation of security-related kernel features to address vulnerabilities. The change also emphasizes staying current with 'latest security fixes' in default kernel updates.

Diff

diff --git a/linux/al2023/ug/kernel-update.md b/linux/al2023/ug/kernel-update.md
index 4e15ed0d7..548111ec5 100644
--- a//linux/al2023/ug/kernel-update.md
+++ b//linux/al2023/ug/kernel-update.md
@@ -5 +5 @@
-Linux kernel versions on AL2023Updating AL2023 to kernel 6.12AL2023 kernels - Frequently Asked Questions
+Linux Kernel Versions on AL2023Updating AL2023 to a Newer Kernel VersionAL2023 kernels - Frequently Asked Questions
@@ -7 +7 @@ Linux kernel versions on AL2023Updating AL2023 to kernel 6.12AL2023 kernels - Fr
-# Updating the Linux kernel on AL2023
+# Updating the Linux Kernel on AL2023
@@ -11 +11 @@ Linux kernel versions on AL2023Updating AL2023 to kernel 6.12AL2023 kernels - Fr
-  * Linux kernel versions on AL2023
+  * Linux Kernel Versions on AL2023
@@ -13 +13 @@ Linux kernel versions on AL2023Updating AL2023 to kernel 6.12AL2023 kernels - Fr
-  * Updating AL2023 to kernel 6.12
+  * Updating AL2023 to a Newer Kernel Version
@@ -20 +20 @@ Linux kernel versions on AL2023Updating AL2023 to kernel 6.12AL2023 kernels - Fr
-## Linux kernel versions on AL2023
+## Linux Kernel Versions on AL2023
@@ -28 +28 @@ In April 2025, AL2023 added support for Linux kernel 6.12. This kernel added new
-## Updating AL2023 to kernel 6.12
+In March 2026, AL2023 added support for Linux kernel 6.18. The updated kernel 6.18 brings additional improvements in processor support, virtualization, security, and performance. Notable features include improved IOMMU capabilities across architectures and Attack Vector Controls for managing CPU vulnerability mitigations. Performance enhancements come through cryptography optimizations with faster FSCRYPT operations, memory management improvements, and the introduction of Sheaves as a new opt-in, per-CPU array-based caching layer. 
@@ -30 +30 @@ In April 2025, AL2023 added support for Linux kernel 6.12. This kernel added new
-You can run AL2023 with kernel 6.12 either by selecting an AMI with kernel 6.12 pre-installed or by upgrading an existing AL2023 EC2 instance.
+## Updating AL2023 to a Newer Kernel Version
@@ -32 +32 @@ You can run AL2023 with kernel 6.12 either by selecting an AMI with kernel 6.12
-### Running an AL2023 kernel 6.12 AMI
+Starting in June 2026, AL2023 will update the default kernel annually. The [al2023-ami-kernel-default](./ec2.html#launch-via-aws-cli) set of AMIs will be updated to the latest LTS kernel, so that newly launched instances will automatically come up with the new kernel version — this is the simplest way to stay current with the latest security fixes and performance improvements.
@@ -34 +34,7 @@ You can run AL2023 with kernel 6.12 either by selecting an AMI with kernel 6.12
-You may select to run an AL2023 AMI with kernel 6.12 pre-installed through the AWS Console or by querying SSM for specific parameters. The SSM keys to query start with `/aws/service/ami-amazon-linux-latest/` followed by one of 
+If you prefer to choose a specific kernel version, you can run AL2023 with kernel 6.12 or 6.18 either by selecting an AMI with the desired kernel pre-installed or by upgrading an existing AL2023 EC2 instance.
+
+### Running an AL2023 AMI with a specific kernel version
+
+You may select to run an AL2023 AMI with a specific kernel pre-installed through the AWS Console or by querying SSM for specific parameters. The SSM keys to query start with `/aws/service/ami-amazon-linux-latest/` followed by one of
+
+#### For kernel 6.12
@@ -46,0 +53,13 @@ You may select to run an AL2023 AMI with kernel 6.12 pre-installed through the A
+#### For kernel 6.18
+
+  * `al2023-ami-kernel-6.18-arm64` for arm64 architecture
+
+  * `al2023-ami-minimal-kernel-6.18-arm64` for arm64 architecture (minimal AMI)
+
+  * `al2023-ami-kernel-6.18-x86_64` for x86_64 architecture
+
+  * `al2023-ami-minimal-kernel-6.18-x86_64` for x86_64 architecture (minimal AMI)
+
+
+
+
@@ -49 +68,21 @@ Please see [Launching AL2023 using the SSM parameter and AWS CLI](./ec2.html#lau
-### Updating an AL2023 instance to kernel 6.12
+### Updating an AL2023 instance to a newer kernel
+
+You can in-place upgrade a running AL2023 instance to kernel 6.12 or 6.18 with the following steps:
+
+  1. Detect current kernel and set target version:
+    
+        # Automatically detect current kernel version BEFORE upgrade
+    $ CURRENT_KERNEL=$(uname -r)
+    $ SOURCE_VERSION=""
+    
+    $ if [[ $CURRENT_KERNEL == *"6.12"* ]]; then
+        SOURCE_VERSION="6.12"
+    else
+        SOURCE_VERSION=""
+    fi
+    
+    # Save the source version to a persistent location for use after reboot
+    $ echo "${SOURCE_VERSION}" | sudo tee /var/lib/source_kernel_version > /dev/null
+    
+        # Set your target version (change this to your desired kernel: 6.12 or 6.18)
+    $ TARGET_VERSION="6.12"
@@ -51 +90,2 @@ Please see [Launching AL2023 using the SSM parameter and AWS CLI](./ec2.html#lau
-You can in-place upgrade a running AL2023 instance to kernel 6.12 with the following steps:
+        $ echo "Current kernel: ${SOURCE_VERSION:-6.1}"
+    $ echo "Upgrading to kernel ${TARGET_VERSION}"
@@ -53 +93 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  1. Install the `kernel6.12` package:
+  2. Install the target kernel package:
@@ -55 +95 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-        $ sudo dnf install -y kernel6.12
+        $ sudo dnf install -y kernel${TARGET_VERSION}
@@ -57 +97 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  2. Get the latest version of the `kernel6.12` package:
+  3. Get the latest version of the target kernel package:
@@ -59 +99 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-        $ version=$(rpm -q --qf '%{version}-%{release}.%{arch}\n' kernel6.12 | sort -V | tail -1) 
+        $ version=$(rpm -q --qf '%{version}-%{release}.%{arch}\n' kernel${TARGET_VERSION} | sort -V | tail -1) 
@@ -61 +101 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  3. Make the new `kernel6.12` your default kernel:
+  4. Make the new kernel your default kernel:
@@ -65 +105 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  4. Reboot your system:
+  5. Reboot your system:
@@ -69 +109,7 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  5. Uninstall kernel 6.1:
+  6. Uninstall the previous kernel:
+    
+        # Read the source kernel version from the saved file
+    $ SOURCE_VERSION=$(sudo cat /var/lib/source_kernel_version)
+    
+    # Uninstall the source kernel
+    $ sudo dnf remove -y kernel${SOURCE_VERSION}
@@ -71 +117 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-        $ sudo dnf remove -y kernel 
+  7. Replace extra kernel packages with their target kernel equivalents:
@@ -73 +119,2 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  6. Replace extra kernel packages with their kernel6.12 equivalents:
+        # Set your target version (change this to your desired kernel: 6.12 or 6.18)
+    $ TARGET_VERSION="6.12"
@@ -77,12 +124,12 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-    [bpftool]=bpftool6.12
-    [kernel-debuginfo]=kernel6.12-debuginfo
-    [kernel-debuginfo-common]=kernel6.12-debuginfo-common
-    [kernel-headers]=kernel6.12-headers
-    [kernel-libbpf]=kernel6.12-libbpf
-    [kernel-libbpf-devel]=kernel6.12-libbpf-devel
-    [kernel-libbpf-static]=kernel6.12-libbpf-static
-    [kernel-modules-extra-common]=kernel6.12-modules-extra-common
-    [kernel-tools]=kernel6.12-tools
-    [kernel-tools-devel]=kernel6.12-tools-devel
-    [perf]=perf6.12
-    [python3-perf]=python3-perf6.12
+    [bpftool${SOURCE_VERSION}]=bpftool${TARGET_VERSION}
+    [kernel${SOURCE_VERSION}-debuginfo]=kernel${TARGET_VERSION}-debuginfo
+    [kernel${SOURCE_VERSION}-debuginfo-common]=kernel${TARGET_VERSION}-debuginfo-common
+    [kernel${SOURCE_VERSION}-headers]=kernel${TARGET_VERSION}-headers
+    [kernel${SOURCE_VERSION}-libbpf]=kernel${TARGET_VERSION}-libbpf
+    [kernel${SOURCE_VERSION}-libbpf-devel]=kernel${TARGET_VERSION}-libbpf-devel
+    [kernel${SOURCE_VERSION}-libbpf-static]=kernel${TARGET_VERSION}-libbpf-static
+    [kernel${SOURCE_VERSION}-modules-extra-common]=kernel${TARGET_VERSION}-modules-extra-common
+    [kernel${SOURCE_VERSION}-tools]=kernel${TARGET_VERSION}-tools
+    [kernel${SOURCE_VERSION}-tools-devel]=kernel${TARGET_VERSION}-tools-devel
+    [perf${SOURCE_VERSION}]=perf${TARGET_VERSION}
+    [python3-perf${SOURCE_VERSION}]=python3-perf${TARGET_VERSION}
@@ -95 +142,10 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-  7. (Optional) Uninstall kernel-devel for kernel 6.1:
+  8. (Optional) Uninstall kernel-devel for previous kernel version:
+    
+        $ rpm -q kernel${SOURCE_VERSION}-devel && sudo dnf remove -y kernel${SOURCE_VERSION}-devel 
+
+
+
+
+### Downgrading to an earlier kernel version
+
+If at any point in time you need to downgrade back to an earlier kernel version, use the following steps:
@@ -97 +153 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-        $ rpm -q kernel-devel && sudo dnf remove -y kernel-devel 
+  1. Detect current kernel and set target version:
@@ -98,0 +155,3 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
+        # Automatically detect current kernel version BEFORE downgrade
+    $ CURRENT_KERNEL=$(uname -r)
+    $ SOURCE_VERSION=""
@@ -99,0 +159,5 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
+    $ if [[ $CURRENT_KERNEL == *"6.12"* ]]; then
+        SOURCE_VERSION="6.12"
+    elif [[ $CURRENT_KERNEL == *"6.18"* ]]; then
+        SOURCE_VERSION="6.18"
+    fi
@@ -100,0 +165,2 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
+    # Save the source version to a persistent location for use after reboot
+    $ echo "${SOURCE_VERSION}" | sudo tee /var/lib/source_kernel_version > /dev/null
@@ -102 +168,3 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-### Downgrading from kernel 6.12 to kernel 6.1
+        # Set your target version (change this to your desired kernel)
+    # Use "" for kernel 6.1, "6.12" for kernel 6.12
+    $ TARGET_VERSION=""
@@ -104 +172 @@ You can in-place upgrade a running AL2023 instance to kernel 6.12 with the follo
-If at any point in time you need to downgrade back to kernel 6.1, use the following steps:
+        $ echo "Downgrading from kernel ${SOURCE_VERSION:-6.1} to kernel ${TARGET_VERSION:-6.1}"
@@ -106 +174 @@ If at any point in time you need to downgrade back to kernel 6.1, use the follow
-  1. Replace extra kernel6.12 packages with their kernel 6.1 equivalents:
+  2. Replace extra kernel packages with their target kernel equivalents:
@@ -110,12 +178,12 @@ If at any point in time you need to downgrade back to kernel 6.1, use the follow
-    [bpftool]=bpftool6.12
-    [kernel-debuginfo]=kernel6.12-debuginfo
-    [kernel-debuginfo-common]=kernel6.12-debuginfo-common
-    [kernel-headers]=kernel6.12-headers
-    [kernel-libbpf]=kernel6.12-libbpf
-    [kernel-libbpf-devel]=kernel6.12-libbpf-devel
-    [kernel-libbpf-static]=kernel6.12-libbpf-static
-    [kernel-modules-extra-common]=kernel6.12-modules-extra-common
-    [kernel-tools]=kernel6.12-tools
-    [kernel-tools-devel]=kernel6.12-tools-devel
-    [perf]=perf6.12
-    [python3-perf]=python3-perf6.12
+    [bpftool${TARGET_VERSION}]=bpftool${SOURCE_VERSION}
+    [kernel${TARGET_VERSION}-debuginfo]=kernel${SOURCE_VERSION}-debuginfo
+    [kernel${TARGET_VERSION}-debuginfo-common]=kernel${SOURCE_VERSION}-debuginfo-common
+    [kernel${TARGET_VERSION}-headers]=kernel${SOURCE_VERSION}-headers
+    [kernel${TARGET_VERSION}-libbpf]=kernel${SOURCE_VERSION}-libbpf
+    [kernel${TARGET_VERSION}-libbpf-devel]=kernel${SOURCE_VERSION}-libbpf-devel
+    [kernel${TARGET_VERSION}-libbpf-static]=kernel${SOURCE_VERSION}-libbpf-static
+    [kernel${TARGET_VERSION}-modules-extra-common]=kernel${SOURCE_VERSION}-modules-extra-common
+    [kernel${TARGET_VERSION}-tools]=kernel${SOURCE_VERSION}-tools
+    [kernel${TARGET_VERSION}-tools-devel]=kernel${SOURCE_VERSION}-tools-devel
+    [perf${TARGET_VERSION}]=perf${SOURCE_VERSION}