Description
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix oops during encryption
When running xfstests against Azure the following oops occurred on an
arm64 system
Unable to handle kernel write to read-only memory at virtual address
ffff0001221cf000
Mem abort info:
ESR = 0x9600004f
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x0f: level 3 permission fault
Data abort info:
ISV = 0, ISS = 0x0000004f
CM = 0, WnR = 1
swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000294f3000
[ffff0001221cf000] pgd=18000001ffff8003, p4d=18000001ffff8003,
pud=18000001ff82e003, pmd=18000001ff71d003, pte=00600001221cf787
Internal error: Oops: 9600004f [#1] PREEMPT SMP
...
pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)
pc : __memcpy+0x40/0x230
lr : scatterwalk_copychunks+0xe0/0x200
sp : ffff800014e92de0
x29: ffff800014e92de0 x28: ffff000114f9de80 x27: 0000000000000008
x26: 0000000000000008 x25: ffff800014e92e78 x24: 0000000000000008
x23: 0000000000000001 x22: 0000040000000000 x21: ffff000000000000
x20: 0000000000000001 x19: ffff0001037c4488 x18: 0000000000000014
x17: 235e1c0d6efa9661 x16: a435f9576b6edd6c x15: 0000000000000058
x14: 0000000000000001 x13: 0000000000000008 x12: ffff000114f2e590
x11: ffffffffffffffff x10: 0000040000000000 x9 : ffff8000105c3580
x8 : 2e9413b10000001a x7 : 534b4410fb86b005 x6 : 534b4410fb86b005
x5 : ffff0001221cf008 x4 : ffff0001037c4490 x3 : 0000000000000001
x2 : 0000000000000008 x1 : ffff0001037c4488 x0 : ffff0001221cf000
Call trace:
__memcpy+0x40/0x230
scatterwalk_map_and_copy+0x98/0x100
crypto_ccm_encrypt+0x150/0x180
crypto_aead_encrypt+0x2c/0x40
crypt_message+0x750/0x880
smb3_init_transform_rq+0x298/0x340
smb_send_rqst.part.11+0xd8/0x180
smb_send_rqst+0x3c/0x100
compound_send_recv+0x534/0xbc0
smb2_query_info_compound+0x32c/0x440
smb2_set_ea+0x438/0x4c0
cifs_xattr_set+0x5d4/0x7c0
This is because in scatterwalk_copychunks(), we attempted to write to
a buffer (@sign) that was allocated in the stack (vmalloc area) by
crypt_message() and thus accessing its remaining 8 (x2) bytes ended up
crossing a page boundary.
To simply fix it, we could just pass @sign kmalloc'd from
crypt_message() and then we're done. Luckily, we don't seem to pass
any other vmalloc'd buffers in smb_rqst::rq_iov...
Instead, let's map the correct pages and offsets from vmalloc buffers
as well in cifs_sg_set_buf() and then avoiding such oopses.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.11 | 5.4.229 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.1.4-1 | — |
| Debian 13 | linux | 6.1.4-1 | — |
| Debian 12 | linux | 6.1.4-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1015.17 | — |
| Ubuntu 24.04 LTS | linux-intel +9 | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-69.76 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1033.37 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1035.42 | — |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1035.42.1 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1031.38 | — |
| Ubuntu 22.04 LTS | linux-gke +1 | 5.15.0-1030.35 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1017.22 | — |
| Ubuntu 22.04 LTS | linux-ibm | 5.15.0-1027.30 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1027.32 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1023.23 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1032.38 | — |
| Ubuntu 22.04 LTS | linux-raspi | 5.15.0-1026.28 | — |
| Ubuntu 22.04 LTS | linux-riscv +32 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-144.161 | — |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1097.105 | — |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1033.37~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1104.110 | — |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1035.42~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1059.65 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1101.110 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1031.38~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-69.76~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1045.50 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1027.32~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1013.15 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1087.93 | — |
| Ubuntu 20.04 LTS | linux-nvidia-tegra-5.15 | 5.15.0-1014.14~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1094.103 | — |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1032.38~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1081.92 | — |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1030.34~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-xilinx-zynqmp | 5.4.0-1022.26 | — |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1097.105~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1104.110~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1101.110~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-144.161~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-ibm-5.4 | 5.4.0-1045.50~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1094.103~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1081.92~18.04.1 | — |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-intel-iot-realtime | 5.15.0-1023.28 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1034.37 | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1099.107+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1104.110+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1073.82 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1101.110+fips1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +5 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux-aws +2 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | bpftool | 7.2.0-362.8.1.el9_3 | RHSA-2023:6583 |
| RHEL 9 | rv +64 | 5.14.0-362.8.1.el9_3 | RHSA-2023:6583 |
| RHEL 8 | perf +26 | 4.18.0-553.27.1.el8_10 | RHSA-2024:8856 |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhel Extras Rt Els 7 | kernel-rt +7 | 3.10.0-1160.143.1.rt56.1295.el7 | RHSA-2025:22914 |
| RHEL 9.2 EUS | bpftool | 7.0.0-284.95.1.el9_2 | RHSA-2024:10772 |
| RHEL 9.2 EUS | perf +48 | 5.14.0-284.95.1.el9_2 | RHSA-2024:10772 |
| RHEL 9.0 E4S | kernel-rt +12 | 5.14.0-70.155.1.rt21.227.el9_0 | RHSA-2025:22087 |
| RHEL 9.0 E4S | perf +28 | 5.14.0-70.155.1.el9_0 | RHSA-2025:22066 |
| RHEL 8.8 TUS | perf +17 | 4.18.0-477.120.1.el8_8 | RHSA-2025:22072 |
| RHEL 8.8 E4S | perf +18 | 4.18.0-477.120.1.el8_8 | RHSA-2025:22072 |
| RHEL 8.6 TUS | perf +17 | 4.18.0-372.170.1.el8_6 | RHSA-2025:22006 |
| RHEL 8.6 E4S | perf +25 | 4.18.0-372.170.1.el8_6 | RHSA-2025:22006 |
| RHEL 8.6 AUS | perf +17 | 4.18.0-372.170.1.el8_6 | RHSA-2025:22006 |
| RHEL 8.4 EUS Long Life | perf +17 | 4.18.0-305.184.1.el8_4 | RHSA-2026:1886 |
| RHEL 8.4 AUS | perf +17 | 4.18.0-305.184.1.el8_4 | RHSA-2026:1886 |
| RHEL 8.2 AUS | perf +17 | 4.18.0-193.185.1.el8_2 | RHSA-2026:2664 |
| RHEL 7 ELS | perf +18 | 3.10.0-1160.143.1.el7 | RHSA-2025:22910 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | perf +24 | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | perf +12 | 3.10.0-1160.119.1.0.15.el7 | ELSA-2025-22910 |
Advisories 14
- WID-SEC-2025-2077 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- ALSA-2024:8856 Moderate: kernel security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2024:8856 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2023:6583 Red Hat Security Advisory: kernel security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2024:10772 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- RHSA-2026:2664 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Aug 22, 2026
- RHSA-2026:1886 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Aug 22, 2026
- RHSA-2025:22087 Red Hat Security Advisory: kernel-rt security update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- RHSA-2025:22066 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- RHSA-2025:22072 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- RHSA-2025:22006 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- RHSA-2025:22914 Red Hat Security Advisory: kernel-rt security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- RHSA-2025:22910 Red Hat Security Advisory: kernel security update Red Hat Security Advisories (RHSA) · Aug 7, 2026
- ELSA-2025-22910 Moderate: kernel security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 28, 2026
References
- https://git.kernel.org/stable/c/e8e2861cc3258dbe407d01ea8c59bb5a53132301
- https://git.kernel.org/stable/c/fe6ea044c4f05706cb71040055b1c70c6c8275e0
- https://git.kernel.org/stable/c/bf0543b93740916ee91956f9a63da6fc0d79daaa
- https://git.kernel.org/stable/c/a13e51760703f71c25d5fc1f4a62dfa4b0cc80e9
- https://git.kernel.org/stable/c/e8d16a54842d609fd4a3ed2d81d4333d6329aa94
- https://git.kernel.org/stable/c/f7f291e14dde32a07b1f0aa06921d28f875a7b54