In the Linux kernel, the following vulnerability has been resolved:
cpufreq: amd-pstate: fix global sysfs attribute type
In commit 3666062b87ec ("cpufreq: amd-pstate: move to use busgetdevroot()") the "amdpstate" attributes where moved from a dedicated kobject to the cpu root kobject.
While the dedicated kobject expects to contain kobjattributes the root kobject needs deviceattributes.
As the changed arguments are not used by the callbacks it works most of the time. However CFI will detect this issue:
[ 4947.849350] CFI failure at devattrshow+0x24/0x60 (target: showstatus+0x0/0x70; expected type: 0x8651b1de) ... [ 4947.849409] Call Trace: [ 4947.849410] <TASK> [ 4947.849411] ? _warn+0xcf/0x1c0 [ 4947.849414] ? devattrshow+0x24/0x60 [ 4947.849415] ? reportcfifailure+0x4e/0x60 [ 4947.849417] ? handlecfifailure+0x14c/0x1d0 [ 4947.849419] ? _cfishowstatus+0x10/0x10 [ 4947.849420] ? handlebug+0x4f/0x90 [ 4947.849421] ? excinvalidop+0x1a/0x60 [ 4947.849422] ? asmexcinvalidop+0x1a/0x20 [ 4947.849424] ? _cfishowstatus+0x10/0x10 [ 4947.849425] ? devattrshow+0x24/0x60 [ 4947.849426] sysfskfseqshow+0xa6/0x110 [ 4947.849433] seqreaditer+0x16c/0x4b0 [ 4947.849436] vfsread+0x272/0x2d0 [ 4947.849438] ksysread+0x72/0xe0 [ 4947.849439] dosyscall64+0x76/0xb0 [ 4947.849440] ? douseraddrfault+0x252/0x650 [ 4947.849442] ? excpagefault+0x7a/0x1b0 [ 4947.849443] entrySYSCALL64afterhwframe+0x72/0xdc