In the Linux kernel, the following vulnerability has been resolved: ext4: fix uninitialized ratelimitstate->lock access in ext4fillsuper() In the following concurrency we will access the uninitialized rs->lock: ext4fillsuper ext4registersysfs // sysfs registered msgratelimitintervalms // Other processes modify rs->interval to // non-zero via msgratelimitintervalms ext4orphancleanup ext4msg(sb, KERNINFO, "Errors on filesystem, " _ext4msg _ratelimit(&(EXT4SB(sb)->smsgratelimitstate) if (!rs->interval) // do nothing if interval is 0 return 1; rawspintrylockirqsave(&rs->lock, flags) rawspintrylock(lock) rawspintrylock rawspintrylock spinacquire(&lock->depmap, 0, 1, _RETIP) lockacquire _lockacquire registerlockclass assignlockkey dumpstack(); ratelimitstateinit(&sbi->smsgratelimitstate, 5 * HZ, 10); rawspinlockinit(&rs->lock); // init rs->lock here and get the following dumpstack: ========================================================= INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 12 PID: 753 Comm: mount Tainted: G E 6.7.0-rc6-next-20231222 #504 [...] Call Trace: dumpstacklvl+0xc5/0x170 dumpstack+0x18/0x30 registerlockclass+0x740/0x7c0 _lockacquire+0x69/0x13a0 lockacquire+0x120/0x450 rawspintrylock+0x98/0xd0 _ratelimit+0xf6/0x220 ext4msg+0x7f/0x160 [ext4] ext4orphancleanup+0x665/0x740 [ext4] _ext4fillsuper+0x21ea/0x2b10 [ext4] ext4fillsuper+0x14d/0x360 [ext4] [...] ========================================================= Normally interval is 0 until smsgratelimitstate is initialized, so ratelimit() does nothing. But registering sysfs precedes initializing rs->lock, so it is possible to change rs->interval to a non-zero value via the msgratelimitintervalms interface of sysfs while rs->lock is uninitialized, and then a call to ext4_msg triggers the problem by accessing an uninitialized rs->lock. Therefore register sysfs after all initializations are complete to avoid such problems.
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-image-unsigned-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-image-unsigned-6.8.0-44-lowlatency-64k-dbgsym": "6.8.0-44.44.1~22.04.1", "linux-tools-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-modules-iwlwifi-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-modules-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-image-unsigned-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-headers-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-modules-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-buildinfo-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-lib-rust-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-headers-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-buildinfo-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-lowlatency-hwe-6.8-tools-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-headers-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-cloud-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1~22.04.1", "linux-image-unsigned-6.8.0-44-lowlatency-dbgsym": "6.8.0-44.44.1~22.04.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-modules-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-tools-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-modules-extra-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-headers-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-buildinfo-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-modules-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia-dbgsym": "6.8.0-1013.14~22.04.1", "linux-image-unsigned-6.8.0-1013-nvidia-64k-dbgsym": "6.8.0-1013.14~22.04.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1", "linux-nvidia-6.8-headers-6.8.0-1013": "6.8.0-1013.14~22.04.1", "linux-nvidia-6.8-tools-6.8.0-1013": "6.8.0-1013.14~22.04.1", "linux-headers-6.8.0-1013-nvidia": "6.8.0-1013.14~22.04.1", "linux-tools-6.8.0-1013-nvidia-64k": "6.8.0-1013.14~22.04.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-riscv-6.8-tools-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-image-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-riscv-6.8-headers-6.8.0-44": "6.8.0-44.44.1~22.04.1", "linux-image-6.8.0-44-generic-dbgsym": "6.8.0-44.44.1~22.04.1", "linux-tools-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-modules-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1", "linux-headers-6.8.0-44-generic": "6.8.0-44.44.1~22.04.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-cloud-tools-common": "6.8.0-44.44", "linux-lib-rust-6.8.0-44-generic": "6.8.0-44.44", "linux-libc-dev": "6.8.0-44.44", "linux-headers-6.8.0-44": "6.8.0-44.44", "linux-source-6.8.0": "6.8.0-44.44", "linux-image-6.8.0-44-generic": "6.8.0-44.44", "linux-doc": "6.8.0-44.44", "linux-headers-6.8.0-44-generic": "6.8.0-44.44", "linux-buildinfo-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic": "6.8.0-44.44", "linux-cloud-tools-6.8.0-44-generic": "6.8.0-44.44", "linux-cloud-tools-6.8.0-44": "6.8.0-44.44", "linux-modules-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-modules-ipu6-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-image-6.8.0-44-generic-dbgsym": "6.8.0-44.44", "linux-modules-usbio-6.8.0-44-generic": "6.8.0-44.44", "linux-modules-iwlwifi-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-6.8.0-44": "6.8.0-44.44", "linux-tools-host": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic-dbgsym": "6.8.0-44.44", "linux-headers-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-buildinfo-6.8.0-44-generic": "6.8.0-44.44", "linux-tools-common": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic-64k": "6.8.0-44.44", "linux-modules-extra-6.8.0-44-generic": "6.8.0-44.44", "linux-image-unsigned-6.8.0-44-generic-64k-dbgsym": "6.8.0-44.44", "linux-modules-6.8.0-44-generic": "6.8.0-44.44" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-tools-6.8.0-1015-aws": "6.8.0-1015.16", "linux-cloud-tools-6.8.0-1015-aws": "6.8.0-1015.16", "linux-headers-6.8.0-1015-aws": "6.8.0-1015.16", "linux-aws-cloud-tools-6.8.0-1015": "6.8.0-1015.16", "linux-image-unsigned-6.8.0-1015-aws-dbgsym": "6.8.0-1015.16", "linux-aws-headers-6.8.0-1015": "6.8.0-1015.16", "linux-buildinfo-6.8.0-1015-aws": "6.8.0-1015.16", "linux-aws-tools-6.8.0-1015": "6.8.0-1015.16", "linux-image-unsigned-6.8.0-1015-aws": "6.8.0-1015.16", "linux-modules-extra-6.8.0-1015-aws": "6.8.0-1015.16", "linux-modules-6.8.0-1015-aws": "6.8.0-1015.16" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-azure-tools-6.8.0-1014": "6.8.0-1014.16", "linux-headers-6.8.0-1014-azure": "6.8.0-1014.16", "linux-modules-iwlwifi-6.8.0-1014-azure": "6.8.0-1014.16", "linux-modules-extra-6.8.0-1014-azure": "6.8.0-1014.16", "linux-tools-6.8.0-1014-azure": "6.8.0-1014.16", "linux-azure-cloud-tools-6.8.0-1014": "6.8.0-1014.16", "linux-azure-headers-6.8.0-1014": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-azure": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-azure-dbgsym": "6.8.0-1014.16", "linux-modules-involflt-6.8.0-1014-azure": "6.8.0-1014.16", "linux-modules-6.8.0-1014-azure": "6.8.0-1014.16", "linux-cloud-tools-6.8.0-1014-azure": "6.8.0-1014.16", "linux-buildinfo-6.8.0-1014-azure": "6.8.0-1014.16" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-tools-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-buildinfo-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-gcp-tools-6.8.0-1014": "6.8.0-1014.16", "linux-headers-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-gcp-headers-6.8.0-1014": "6.8.0-1014.16", "linux-modules-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-modules-extra-6.8.0-1014-gcp": "6.8.0-1014.16", "linux-image-unsigned-6.8.0-1014-gcp-dbgsym": "6.8.0-1014.16" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-gke-tools-6.8.0-1010": "6.8.0-1010.13", "linux-modules-extra-6.8.0-1010-gke": "6.8.0-1010.13", "linux-image-unsigned-6.8.0-1010-gke-dbgsym": "6.8.0-1010.13", "linux-modules-iwlwifi-6.8.0-1010-gke": "6.8.0-1010.13", "linux-headers-6.8.0-1010-gke": "6.8.0-1010.13", "linux-image-unsigned-6.8.0-1010-gke": "6.8.0-1010.13", "linux-tools-6.8.0-1010-gke": "6.8.0-1010.13", "linux-modules-6.8.0-1010-gke": "6.8.0-1010.13", "linux-gke-headers-6.8.0-1010": "6.8.0-1010.13", "linux-buildinfo-6.8.0-1010-gke": "6.8.0-1010.13" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-ibm-tools-6.8.0-1012": "6.8.0-1012.12", "linux-ibm-source-6.8.0": "6.8.0-1012.12", "linux-modules-extra-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-ibm-headers-6.8.0-1012": "6.8.0-1012.12", "linux-tools-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-headers-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-modules-iwlwifi-6.8.0-1012-ibm": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-ibm-dbgsym": "6.8.0-1012.12", "linux-ibm-cloud-tools-common": "6.8.0-1012.12", "linux-modules-6.8.0-1012-ibm": "6.8.0-1012.12" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-image-unsigned-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-image-unsigned-6.8.0-44-lowlatency-64k-dbgsym": "6.8.0-44.44.1", "linux-lowlatency-headers-6.8.0-44": "6.8.0-44.44.1", "linux-tools-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-lowlatency-tools-common": "6.8.0-44.44.1", "linux-modules-iwlwifi-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-modules-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-lowlatency-tools-host": "6.8.0-44.44.1", "linux-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-lowlatency-cloud-tools-common": "6.8.0-44.44.1", "linux-headers-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-modules-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-image-unsigned-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-buildinfo-6.8.0-44-lowlatency-64k": "6.8.0-44.44.1", "linux-lowlatency-cloud-tools-6.8.0-44": "6.8.0-44.44.1", "linux-lowlatency-tools-6.8.0-44": "6.8.0-44.44.1", "linux-buildinfo-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-headers-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-lowlatency-lib-rust-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-cloud-tools-6.8.0-44-lowlatency": "6.8.0-44.44.1", "linux-image-unsigned-6.8.0-44-lowlatency-dbgsym": "6.8.0-44.44.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-modules-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-modules-nvidia-fs-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-tools-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-modules-extra-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-headers-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-buildinfo-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-modules-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia-dbgsym": "6.8.0-1013.14", "linux-image-unsigned-6.8.0-1013-nvidia-64k-dbgsym": "6.8.0-1013.14", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-64k": "6.8.0-1013.14", "linux-nvidia-headers-6.8.0-1013": "6.8.0-1013.14", "linux-nvidia-tools-6.8.0-1013": "6.8.0-1013.14", "linux-headers-6.8.0-1013-nvidia": "6.8.0-1013.14", "linux-nvidia-tools-host": "6.8.0-1013.14", "linux-tools-6.8.0-1013-nvidia-64k": "6.8.0-1013.14" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-nvidia-lowlatency-tools-host": "6.8.0-1013.14.1", "linux-buildinfo-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-nvidia-lowlatency-tools-6.8.0-1013": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency-64k-dbgsym": "6.8.0-1013.14.1", "linux-buildinfo-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-modules-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency-dbgsym": "6.8.0-1013.14.1", "linux-tools-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-modules-extra-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-nvidia-lowlatency-headers-6.8.0-1013": "6.8.0-1013.14.1", "linux-headers-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-image-unsigned-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-headers-6.8.0-1013-nvidia-lowlatency": "6.8.0-1013.14.1", "linux-tools-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-modules-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1", "linux-modules-nvidia-fs-6.8.0-1013-nvidia-lowlatency-64k": "6.8.0-1013.14.1" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-image-unsigned-6.8.0-1012-oem": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oem-dbgsym": "6.8.0-1012.12", "linux-modules-ipu6-6.8.0-1012-oem": "6.8.0-1012.12", "linux-headers-6.8.0-1012-oem": "6.8.0-1012.12", "linux-oem-6.8-headers-6.8.0-1012": "6.8.0-1012.12", "linux-modules-6.8.0-1012-oem": "6.8.0-1012.12", "linux-modules-usbio-6.8.0-1012-oem": "6.8.0-1012.12", "linux-tools-6.8.0-1012-oem": "6.8.0-1012.12", "linux-modules-iwlwifi-6.8.0-1012-oem": "6.8.0-1012.12", "linux-oem-6.8-tools-6.8.0-1012": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-oem": "6.8.0-1012.12" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-oracle-headers-6.8.0-1012": "6.8.0-1012.12", "linux-modules-iwlwifi-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle-dbgsym": "6.8.0-1012.12", "linux-modules-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-modules-extra-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-modules-extra-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-tools-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-buildinfo-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-headers-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-modules-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-oracle-tools-6.8.0-1012": "6.8.0-1012.12", "linux-tools-6.8.0-1012-oracle-64k": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle-64k-dbgsym": "6.8.0-1012.12", "linux-image-unsigned-6.8.0-1012-oracle": "6.8.0-1012.12", "linux-headers-6.8.0-1012-oracle": "6.8.0-1012.12" } ] }
{ "availability": "No subscription required", "ubuntu_priority": "medium", "binaries": [ { "linux-buildinfo-6.8.0-44-generic": "6.8.0-44.44.1", "linux-riscv-headers-6.8.0-44": "6.8.0-44.44.1", "linux-image-6.8.0-44-generic": "6.8.0-44.44.1", "linux-tools-6.8.0-44-generic": "6.8.0-44.44.1", "linux-image-6.8.0-44-generic-dbgsym": "6.8.0-44.44.1", "linux-modules-6.8.0-44-generic": "6.8.0-44.44.1", "linux-headers-6.8.0-44-generic": "6.8.0-44.44.1", "linux-riscv-tools-6.8.0-44": "6.8.0-44.44.1" } ] }