CVE-2023-1192: Use-after-free in smb2_is_status_io_timeout()

Published Dec 16, 2022
·
Updated

A use after free flaw was found in smb2isstatusiotimeout() in CIFS in the Linux Kernel.

When client uses CIFS, system calls about file operation will call cifs API to send samba request, and there is a CIFS kernel thread handler cifsdemultiplexthread() which receives response from remote server and transfer those data to corresponding syscall request.

After CIFS transfers response data to system call, there is still a local variable points to the memory region, and if system call frees it faster than CIFS uses it, CIFS will access a free memory region when calls function such as smb2isstatusiotimeout() .

Refer: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d527f51331cace562393a8038d870b3e9916686f

KASAN report

[ 83.686500] ================================================================== [ 83.686821] BUG: KASAN: use-after-free in smb2isstatusiotimeout+0x6e/0x70 [ 83.687136] Read of size 4 at addr ffff8880086d4808 by task cifsd/272 [ 83.687409] [ 83.687484] CPU: 1 PID: 272 Comm: cifsd Not tainted 6.0.6 #9 [ 83.687731] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/04 [ 83.688081] Call Trace: [ 83.688209] <TASK> [ 83.688306] dumpstacklvl+0x34/0x48 [ 83.688472] printreport.cold+0x5e/0x5e5 [ 83.688652] ? smb2isstatusiotimeout+0x6e/0x70 [ 83.688864] kasanreport+0xa3/0x130 [ 83.689025] ? smb2isstatusiotimeout+0x6e/0x70 [ 83.689237] smb2isstatusiotimeout+0x6e/0x70 [ 83.689442] cifsdemultiplexthread+0xdbe/0x1db0 [ 83.689647] ? updateloadavg+0x124/0x19b0 [ 83.689817] ? cifshandlestandard+0x600/0x600 [ 83.689993] ? runrebalancedomains+0x180/0x180 [ 83.690172] ? updatecurr+0x233/0x520 [ 83.690330] ? schedule+0x885/0x1a80 [ 83.690488] ? rawspinlockirqsave+0x88/0xe0 [ 83.690679] ? cpuidletextend+0x1/0x1 [ 83.690838] ? kthreadparkme+0x7e/0x150 [ 83.691012] ? cifshandlestandard+0x600/0x600 [ 83.691204] kthread+0x267/0x300 [ 83.691338] ? kthreadcompleteandexit+0x20/0x20 [ 83.691542] retfromfork+0x22/0x30 [ 83.691688] </TASK> [ 83.691780] [ 83.691846] Allocated by task 272: [ 83.691985] kasansavestack+0x1e/0x40 [ 83.692142] kasanslaballoc+0x66/0x80 [ 83.692306] kmemcachealloc+0xbf/0x200 [ 83.692457] mempoolalloc+0xfe/0x2d0 [ 83.692598] cifssmallbufget+0x2e/0x80 [ 83.692752] allocatebuffers+0x10d/0x320 [ 83.692902] cifsdemultiplexthread+0x22e/0x1db0 [ 83.693082] kthread+0x267/0x300 [ 83.693218] retfromfork+0x22/0x30 [ 83.693374] [ 83.693443] Freed by task 399: [ 83.693576] kasansavestack+0x1e/0x40 [ 83.693743] kasansettrack+0x21/0x30 [ 83.693907] kasansetfreeinfo+0x20/0x40 [ 83.694083] kasanslabfree+0x108/0x190 [ 83.694261] kmemcachefree+0x9c/0x340 [ 83.694428] freerspbuf+0x4c/0xe0 [ 83.694579] SMB2open+0x1f6/0x17c0 [ 83.694731] smb2openfile+0x166/0x650 [ 83.694896] cifsopen+0x82d/0x1b20 [ 83.695048] dodentryopen+0x441/0x1020 [ 83.695219] pathopenat+0x1fbe/0x3850 [ 83.695385] dofilpopen+0x1ac/0x3e0 [ 83.695545] doopenexecat+0xb9/0x5a0 [ 83.695706] bprmexecve+0x35b/0x1250 [ 83.695867] doexecveatcommon.isra.0+0x4c6/0x660 [ 83.696073] x64sysexecve+0x83/0xb0 [ 83.696239] dosyscall64+0x3b/0x90 [ 83.696394] entrySYSCALL64afterhwframe+0x63/0xcd [ 83.696612] [ 83.696683] The buggy address belongs to the object at ffff8880086d4800 [ 83.696683] which belongs to the cache cifssmallrq of size 448 [ 83.697216] The buggy address is located 8 bytes inside of [ 83.697216] 448-byte region [ffff8880086d4800, ffff8880086d49c0) [ 83.697694] [ 83.697766] The buggy address belongs to the physical page: [ 83.698001] page:00000000eca794da refcount:1 mapcount:0 mapping:0000000000000000 inde4 [ 83.698401] head:00000000eca794da order:1 compoundmapcount:0 compoundpincount:0 [ 83.698716] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 83.698961] raw: 0100000000010200 0000000000000000 dead000000000122 ffff888007748b40 [ 83.699290] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 83.699616] page dumped because: kasan: bad access detected [ 83.699852] [ 83.699927] Memory state around the buggy address: [ 83.700130] ffff8880086d4700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 83.700436] ffff8880086d4780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 83.700742] >ffff8880086d4800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 83.701049] ^ [ 83.701205] ffff8880086d4880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 83.701508] ffff8880086d4900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 83.701813] ================================================================== [ 83.702134] Disabling lock debugging due to kernel taint

Other sources

A use-after-free flaw was found in smb2isstatusiotimeout() in CIFS in the Linux Kernel. After CIFS transfers response data to a system call, there are still local variable points to the memory region, and if the system call frees it faster than CIFS uses it, CIFS will access a free memory region, leading to a denial of service.

— NVD

Linux Kernel is vulnerable to a denial of service, caused by a use-after-free flaw in the smb2isstatusiotimeout() function in CIFS . By sending a specially crafted system call, a remote authenticated attacker could exploit this vulnerability to cause a denial of service condition.

— IBM

Affected Software

99 affected componentsFixes available
Linux Linux kernel<6.4
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
IBM Security Verify Governance, Identity Manager software component<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager virtual appliance component<=ISVG 10.0.2
ubuntu/linux-hwe-edge*
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-5.15<5.15.0-1044.49~20.04.1
5.15.0-1044.49~20.04.1
ubuntu/linux-azure-5.15<5.15.0-1046.53~20.04.1
5.15.0-1046.53~20.04.1
ubuntu/linux-gcp-5.15<5.15.0-1041.49~20.04.1
5.15.0-1041.49~20.04.1
ubuntu/linux-gkeop-5.15<5.15.0-1027.32~20.04.1
5.15.0-1027.32~20.04.1
ubuntu/linux-hwe-5.15<5.15.0-83.92~20.04.1
5.15.0-83.92~20.04.1
ubuntu/linux-ibm-5.15<5.15.0-1037.40~20.04.1
5.15.0-1037.40~20.04.1
ubuntu/linux-intel-iotg-5.15<5.15.0-1040.46~20.04.1
5.15.0-1040.46~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-83.92~20.04.1
5.15.0-83.92~20.04.1
ubuntu/linux-nvidia-tegra-5.15<5.15.0-1017.17~20.04.1
5.15.0-1017.17~20.04.1
ubuntu/linux-oracle-5.15<5.15.0-1042.48~20.04.1
5.15.0-1042.48~20.04.1
ubuntu/linux-riscv-5.15<5.15.0-1040.44~20.04.3
5.15.0-1040.44~20.04.3
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux<5.15.0-83.92
5.15.0-83.92
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1044.49
5.15.0-1044.49
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2*
ubuntu/linux-azure<5.15.0-1046.53
5.15.0-1046.53
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2*
ubuntu/linux-azure-fde<5.15.0-1046.53.1
5.15.0-1046.53.1
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-azure-fde-6.2*
ubuntu/linux-gcp<5.15.0-1041.49
5.15.0-1041.49
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2*
ubuntu/linux-gke<5.15.0-1041.46
5.15.0-1041.46
ubuntu/linux-gkeop<5.15.0-1027.32
5.15.0-1027.32
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2*
ubuntu/linux-ibm<5.15.0-1037.40
5.15.0-1037.40
ubuntu/linux-intel-iotg<5.15.0-1039.45
5.15.0-1039.45
ubuntu/linux-kvm<5.15.0-1041.46
5.15.0-1041.46
ubuntu/linux-lowlatency<5.15.0-83.92
5.15.0-83.92
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2*
ubuntu/linux-nvidia<5.15.0-1032.32
5.15.0-1032.32
ubuntu/linux-nvidia-6.2*
ubuntu/linux-nvidia-tegra<5.15.0-1017.17
5.15.0-1017.17
ubuntu/linux-nvidia-tegra-igx<5.15.0-1004.4
5.15.0-1004.4
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0*
ubuntu/linux-oem-6.1<6.1.0-1016.16
6.1.0-1016.16
ubuntu/linux-oracle<5.15.0-1042.48
5.15.0-1042.48
ubuntu/linux-raspi<5.15.0-1037.40
5.15.0-1037.40
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-starfive-5.19*
ubuntu/linux-starfive-6.2*
ubuntu/linux-xilinx-zynqmp<5.15.0-1025.29
5.15.0-1025.29
ubuntu/linux-bluefield<5.15.0-1023.25
5.15.0-1023.25
ubuntu/linux-intel-iot-realtime<5.15.0-1038.40
5.15.0-1038.40
ubuntu/linux-realtime<5.15.0-1045.50
5.15.0-1045.50
ubuntu/linux-fips*
ubuntu/linux-raspi-realtime*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1044.49~20.04.1
  2. Upgrade

    Upgrade ubuntu/linux-azure-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1046.53~20.04.1
  3. Upgrade

    Upgrade ubuntu/linux-gcp-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1041.49~20.04.1
  4. Upgrade

    Upgrade ubuntu/linux-gkeop-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1027.32~20.04.1
  5. Upgrade

    Upgrade ubuntu/linux-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-83.92~20.04.1
  6. Upgrade

    Upgrade ubuntu/linux-ibm-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1037.40~20.04.1
  7. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1040.46~20.04.1
  8. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-83.92~20.04.1
  9. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.17~20.04.1
  10. Upgrade

    Upgrade ubuntu/linux-oracle-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1042.48~20.04.1
  11. Upgrade

    Upgrade ubuntu/linux-riscv-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1040.44~20.04.3
  12. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.15.0-83.92
  13. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.15.0-1044.49
  14. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.15.0-1046.53
  15. Upgrade

    Upgrade ubuntu/linux-azure-fde to a version that resolves this vulnerability.

    Fixed in 5.15.0-1046.53.1
  16. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1041.49
  17. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.15.0-1041.46
  18. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.15.0-1027.32
  19. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1037.40
  20. Upgrade

    Upgrade ubuntu/linux-intel-iotg to a version that resolves this vulnerability.

    Fixed in 5.15.0-1039.45
  21. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1041.46
  22. Upgrade

    Upgrade ubuntu/linux-lowlatency to a version that resolves this vulnerability.

    Fixed in 5.15.0-83.92
  23. Upgrade

    Upgrade ubuntu/linux-nvidia to a version that resolves this vulnerability.

    Fixed in 5.15.0-1032.32
  24. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.17
  25. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra-igx to a version that resolves this vulnerability.

    Fixed in 5.15.0-1004.4
  26. Upgrade

    Upgrade ubuntu/linux-oem-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.0-1016.16
  27. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.15.0-1042.48
  28. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.15.0-1037.40
  29. Upgrade

    Upgrade ubuntu/linux-xilinx-zynqmp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1025.29
  30. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.15.0-1023.25
  31. Upgrade

    Upgrade ubuntu/linux-intel-iot-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1038.40
  32. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1045.50

Event History

Dec 16, 2022
Data Sourced
06:05 AM
DescriptionSeverityAffected Software
Nov 1, 2023
CVE Published
via MITRE·07:01 PM
Data Sourced
07:01 PM
Weakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Event
via OSV·08:15 PM
Nov 9, 2023
Data Sourced
03:24 PM
Remedy
Updated
03:24 PM
SeverityWeakness
Dec 27, 2023
Updated
05:51 PM
Description
Jan 8, 2024
Data Sourced
via Red Hat·03:03 PM
DescriptionSeverityAffected Software
Mar 7, 2024
Data Sourced
via MITRE·04:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·05:15 PM
Affected Software
Mar 8, 2024
Updated
via Red Hat·10:10 AM
Description
Mar 20, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
May 9, 2024
Updated
via IBM·12:00 AM
Affected Software
May 15, 2024
Updated
via IBM·12:00 AM
Affected Software
Oct 16, 2024
Updated
via IBM·12:00 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-1192?

CVE-2023-1192 has been classified as a high severity vulnerability due to the potential for exploitation of the use after free flaw.

2

How do I fix CVE-2023-1192?

To fix CVE-2023-1192, update your Linux Kernel to version 6.4 or later, or apply the appropriate patches provided by your distribution.

3

Which systems are affected by CVE-2023-1192?

CVE-2023-1192 affects various versions of the Linux Kernel prior to 6.4, along with IBM Security Verify Governance components ISVG 10.0.2.

4

What are the potential impacts of CVE-2023-1192?

Exploitation of CVE-2023-1192 could lead to unauthorized access or remote code execution due to the use after free condition.

5

Is CVE-2023-1192 specific to certain distributions?

Yes, CVE-2023-1192 specifically affects Red Hat Enterprise Linux versions 8.0 and 9.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203