HomeDefectsLIN1025-1909
Acknowledged

LIN1025-1909 : Security Advisory - linux - CVE-2022-50092

Created: Jun 18, 2025    Updated: Sep 4, 2026
Resolved Date: Jun 19, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]dm thin: fix use-after-free crash in dm_sm_register_threshold_callback[EOL][EOL]Fault inject on pool metadata device reports:[EOL]  BUG: KASAN: use-after-free in dm_pool_register_metadata_threshold+0x40/0x80[EOL]  Read of size 8 at addr ffff8881b9d50068 by task dmsetup/950[EOL][EOL]  CPU: 7 PID: 950 Comm: dmsetup Tainted: G        W         5.19.0-rc6 #1[EOL]  Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-1.fc33 04/01/2014[EOL]  Call Trace:[EOL]   <TASK>[EOL]   dump_stack_lvl+0x34/0x44[EOL]   print_address_description.constprop.0.cold+0xeb/0x3f4[EOL]   kasan_report.cold+0xe6/0x147[EOL]   dm_pool_register_metadata_threshold+0x40/0x80[EOL]   pool_ctr+0xa0a/0x1150[EOL]   dm_table_add_target+0x2c8/0x640[EOL]   table_load+0x1fd/0x430[EOL]   ctl_ioctl+0x2c4/0x5a0[EOL]   dm_ctl_ioctl+0xa/0x10[EOL]   __x64_sys_ioctl+0xb3/0xd0[EOL]   do_syscall_64+0x35/0x80[EOL]   entry_SYSCALL_64_after_hwframe+0x46/0xb0[EOL][EOL]This can be easily reproduced using:[EOL]  echo offline > /sys/block/sda/device/state[EOL]  dd if=/dev/zero of=/dev/mapper/thin bs=4k count=10[EOL]  dmsetup load pool --table "0 20971520 thin-pool /dev/sda /dev/sdb 128 0 0"[EOL][EOL]If a metadata commit fails, the transaction will be aborted and the[EOL]metadata space maps will be destroyed. If a DM table reload then[EOL]happens for this failed thin-pool, a use-after-free will occur in[EOL]dm_sm_register_threshold_callback (called from[EOL]dm_pool_register_metadata_threshold).[EOL][EOL]Fix this by in dm_pool_register_metadata_threshold() by returning the[EOL]-EINVAL error if the thin-pool is in fail mode. Also fail pool_ctr()[EOL]with a new error message: "Error registering metadata threshold".

CREATE(Triage):(User=lchen-cn) [CVE-2022-50092 (https://nvd.nist.gov/vuln/detail/CVE-2022-50092)