In the Linux kernel, the following vulnerability has been resolved:
media: dvb-frontends: avoid stack overflow warnings with clang
A previous patch worked around a KASAN issue in stv0367, now a similar problem showed up with clang:
drivers/media/dvb-frontends/stv0367.c:1222:12: error: stack frame size (3624) exceeds limit (2048) in 'stv0367tersetfrontend' [-Werror,-Wframe-larger-than] 1214 | static int stv0367tersetfrontend(struct dvb_frontend *fe)
Rework the stv0367writereg() function to be simpler and mark both register access functions as noinlineforstack so the temporary i2cmsg structures do not get duplicated on the stack when KASAN_STACK is enabled.
[
{
"id": "CVE-2024-27075-15387647",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writeregs"
},
"digest": {
"length": 870.0,
"function_hash": "119407181170398678690773842837805482608"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c073c8cede5abd3836e83d70d72606d11d0759d4",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-248fee38",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writeregs"
},
"digest": {
"length": 870.0,
"function_hash": "119407181170398678690773842837805482608"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fad9c5bb00d3a9508d18bbfe832e33a47377730",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-2a072dfa",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writeregs"
},
"digest": {
"length": 870.0,
"function_hash": "119407181170398678690773842837805482608"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6b4895197ab5a47cb81c6852d49320b05052960",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-2ba83ddc",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writeregs"
},
"digest": {
"length": 870.0,
"function_hash": "119407181170398678690773842837805482608"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb07104a02e87c06c39914d13ed67fd8f839ca82",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-314189eb",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"151038466775982955366575004437911369992",
"252641576108757258472599779649792051607",
"96472924804352514962308682734305144065",
"339315159226734171800154714295902845684",
"65555153781593251543403259959474726692",
"305672688689883707897352239366679133490",
"99175223528081505099695769191862908915",
"100806714239767951585547970134697846461",
"288665593539573080796997725815724433794",
"231985183169608348837112512358314227561",
"315304735396540230264203527098374054652",
"280224207083739134883740257687937385164",
"264806987190619489420476844218658456798",
"122543650260921047393162284349912720098",
"155931424292243613095238919702238722574",
"236257747843965038581788752402966543575",
"210834545479937335752699967182015392832",
"234133650866512390411345268115703335959",
"238071061452693184158330753488833762128",
"254564129187377069405670056510438313222",
"97004446832052765513037764495707380475",
"136607339231142193091397081194633585641",
"123374479279274181609180424763466234419",
"101664186467041605868801402108089450474",
"39594173531184462946254716949612341255",
"251365186110071518536647672477569954438",
"91375750291302822492911799205320194881",
"80858405416006765262397279541991353151",
"206796454641352310237365802306378776994",
"225291724018300951125604775661438078914",
"335062754059233003015835072413488562149",
"113008035919950301645682447483318982214",
"310276927460388187324947384692674605597",
"325044656086615549974511802681946172268",
"337370416155443415831307321801369946558",
"182193810086668537454519572055018915349",
"157284073629264372245830093285454468364",
"99219692336372146404057328497310398890"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6b4895197ab5a47cb81c6852d49320b05052960",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-3f3b85eb",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writeregs"
},
"digest": {
"length": 870.0,
"function_hash": "119407181170398678690773842837805482608"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d20b64f156de5d10410963fe238d82a4e7e97a2f",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-4348a1e2",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writereg"
},
"digest": {
"length": 139.0,
"function_hash": "149800660567916602859032476608516535132"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d6b4895197ab5a47cb81c6852d49320b05052960",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-5b8aaa85",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writeregs"
},
"digest": {
"length": 870.0,
"function_hash": "119407181170398678690773842837805482608"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a4cf27d1f0538f779bf31b8c99eda394e277119",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-6784b346",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"151038466775982955366575004437911369992",
"252641576108757258472599779649792051607",
"96472924804352514962308682734305144065",
"339315159226734171800154714295902845684",
"65555153781593251543403259959474726692",
"305672688689883707897352239366679133490",
"99175223528081505099695769191862908915",
"100806714239767951585547970134697846461",
"288665593539573080796997725815724433794",
"231985183169608348837112512358314227561",
"315304735396540230264203527098374054652",
"280224207083739134883740257687937385164",
"264806987190619489420476844218658456798",
"122543650260921047393162284349912720098",
"155931424292243613095238919702238722574",
"236257747843965038581788752402966543575",
"210834545479937335752699967182015392832",
"234133650866512390411345268115703335959",
"238071061452693184158330753488833762128",
"254564129187377069405670056510438313222",
"97004446832052765513037764495707380475",
"136607339231142193091397081194633585641",
"123374479279274181609180424763466234419",
"101664186467041605868801402108089450474",
"39594173531184462946254716949612341255",
"251365186110071518536647672477569954438",
"91375750291302822492911799205320194881",
"80858405416006765262397279541991353151",
"206796454641352310237365802306378776994",
"225291724018300951125604775661438078914",
"335062754059233003015835072413488562149",
"113008035919950301645682447483318982214",
"310276927460388187324947384692674605597",
"325044656086615549974511802681946172268",
"337370416155443415831307321801369946558",
"182193810086668537454519572055018915349",
"157284073629264372245830093285454468364",
"99219692336372146404057328497310398890"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb07104a02e87c06c39914d13ed67fd8f839ca82",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-6af517f1",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"151038466775982955366575004437911369992",
"252641576108757258472599779649792051607",
"96472924804352514962308682734305144065",
"339315159226734171800154714295902845684",
"65555153781593251543403259959474726692",
"305672688689883707897352239366679133490",
"99175223528081505099695769191862908915",
"100806714239767951585547970134697846461",
"288665593539573080796997725815724433794",
"231985183169608348837112512358314227561",
"315304735396540230264203527098374054652",
"280224207083739134883740257687937385164",
"264806987190619489420476844218658456798",
"122543650260921047393162284349912720098",
"155931424292243613095238919702238722574",
"236257747843965038581788752402966543575",
"210834545479937335752699967182015392832",
"234133650866512390411345268115703335959",
"238071061452693184158330753488833762128",
"254564129187377069405670056510438313222",
"97004446832052765513037764495707380475",
"136607339231142193091397081194633585641",
"123374479279274181609180424763466234419",
"101664186467041605868801402108089450474",
"39594173531184462946254716949612341255",
"251365186110071518536647672477569954438",
"91375750291302822492911799205320194881",
"80858405416006765262397279541991353151",
"206796454641352310237365802306378776994",
"225291724018300951125604775661438078914",
"335062754059233003015835072413488562149",
"113008035919950301645682447483318982214",
"310276927460388187324947384692674605597",
"325044656086615549974511802681946172268",
"337370416155443415831307321801369946558",
"182193810086668537454519572055018915349",
"157284073629264372245830093285454468364",
"99219692336372146404057328497310398890"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fad9c5bb00d3a9508d18bbfe832e33a47377730",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-7a7e3fe8",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writereg"
},
"digest": {
"length": 139.0,
"function_hash": "149800660567916602859032476608516535132"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c073c8cede5abd3836e83d70d72606d11d0759d4",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-8143b94f",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writereg"
},
"digest": {
"length": 139.0,
"function_hash": "149800660567916602859032476608516535132"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb07104a02e87c06c39914d13ed67fd8f839ca82",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-833d7df0",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writereg"
},
"digest": {
"length": 139.0,
"function_hash": "149800660567916602859032476608516535132"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d20b64f156de5d10410963fe238d82a4e7e97a2f",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-9e749c70",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"151038466775982955366575004437911369992",
"252641576108757258472599779649792051607",
"96472924804352514962308682734305144065",
"339315159226734171800154714295902845684",
"65555153781593251543403259959474726692",
"305672688689883707897352239366679133490",
"99175223528081505099695769191862908915",
"100806714239767951585547970134697846461",
"288665593539573080796997725815724433794",
"231985183169608348837112512358314227561",
"315304735396540230264203527098374054652",
"280224207083739134883740257687937385164",
"264806987190619489420476844218658456798",
"122543650260921047393162284349912720098",
"155931424292243613095238919702238722574",
"236257747843965038581788752402966543575",
"210834545479937335752699967182015392832",
"234133650866512390411345268115703335959",
"238071061452693184158330753488833762128",
"254564129187377069405670056510438313222",
"97004446832052765513037764495707380475",
"136607339231142193091397081194633585641",
"123374479279274181609180424763466234419",
"101664186467041605868801402108089450474",
"39594173531184462946254716949612341255",
"251365186110071518536647672477569954438",
"91375750291302822492911799205320194881",
"80858405416006765262397279541991353151",
"206796454641352310237365802306378776994",
"225291724018300951125604775661438078914",
"335062754059233003015835072413488562149",
"113008035919950301645682447483318982214",
"310276927460388187324947384692674605597",
"325044656086615549974511802681946172268",
"337370416155443415831307321801369946558",
"182193810086668537454519572055018915349",
"157284073629264372245830093285454468364",
"99219692336372146404057328497310398890"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c073c8cede5abd3836e83d70d72606d11d0759d4",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-bdb584cc",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"151038466775982955366575004437911369992",
"252641576108757258472599779649792051607",
"96472924804352514962308682734305144065",
"339315159226734171800154714295902845684",
"65555153781593251543403259959474726692",
"305672688689883707897352239366679133490",
"99175223528081505099695769191862908915",
"100806714239767951585547970134697846461",
"288665593539573080796997725815724433794",
"231985183169608348837112512358314227561",
"315304735396540230264203527098374054652",
"280224207083739134883740257687937385164",
"264806987190619489420476844218658456798",
"122543650260921047393162284349912720098",
"155931424292243613095238919702238722574",
"236257747843965038581788752402966543575",
"210834545479937335752699967182015392832",
"234133650866512390411345268115703335959",
"238071061452693184158330753488833762128",
"254564129187377069405670056510438313222",
"97004446832052765513037764495707380475",
"136607339231142193091397081194633585641",
"123374479279274181609180424763466234419",
"101664186467041605868801402108089450474",
"39594173531184462946254716949612341255",
"251365186110071518536647672477569954438",
"91375750291302822492911799205320194881",
"80858405416006765262397279541991353151",
"206796454641352310237365802306378776994",
"225291724018300951125604775661438078914",
"335062754059233003015835072413488562149",
"113008035919950301645682447483318982214",
"310276927460388187324947384692674605597",
"325044656086615549974511802681946172268",
"337370416155443415831307321801369946558",
"182193810086668537454519572055018915349",
"157284073629264372245830093285454468364",
"99219692336372146404057328497310398890"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a4cf27d1f0538f779bf31b8c99eda394e277119",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-da906a0e",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writereg"
},
"digest": {
"length": 139.0,
"function_hash": "149800660567916602859032476608516535132"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8fad9c5bb00d3a9508d18bbfe832e33a47377730",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-e499cfc8",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c",
"function": "stv0367_writereg"
},
"digest": {
"length": 139.0,
"function_hash": "149800660567916602859032476608516535132"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7a4cf27d1f0538f779bf31b8c99eda394e277119",
"signature_version": "v1"
},
{
"id": "CVE-2024-27075-fb60692d",
"target": {
"file": "drivers/media/dvb-frontends/stv0367.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"151038466775982955366575004437911369992",
"252641576108757258472599779649792051607",
"96472924804352514962308682734305144065",
"339315159226734171800154714295902845684",
"65555153781593251543403259959474726692",
"305672688689883707897352239366679133490",
"99175223528081505099695769191862908915",
"100806714239767951585547970134697846461",
"288665593539573080796997725815724433794",
"231985183169608348837112512358314227561",
"315304735396540230264203527098374054652",
"280224207083739134883740257687937385164",
"264806987190619489420476844218658456798",
"122543650260921047393162284349912720098",
"155931424292243613095238919702238722574",
"236257747843965038581788752402966543575",
"210834545479937335752699967182015392832",
"234133650866512390411345268115703335959",
"238071061452693184158330753488833762128",
"254564129187377069405670056510438313222",
"97004446832052765513037764495707380475",
"136607339231142193091397081194633585641",
"123374479279274181609180424763466234419",
"101664186467041605868801402108089450474",
"39594173531184462946254716949612341255",
"251365186110071518536647672477569954438",
"91375750291302822492911799205320194881",
"80858405416006765262397279541991353151",
"206796454641352310237365802306378776994",
"225291724018300951125604775661438078914",
"335062754059233003015835072413488562149",
"113008035919950301645682447483318982214",
"310276927460388187324947384692674605597",
"325044656086615549974511802681946172268",
"337370416155443415831307321801369946558",
"182193810086668537454519572055018915349",
"157284073629264372245830093285454468364",
"99219692336372146404057328497310398890"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d20b64f156de5d10410963fe238d82a4e7e97a2f",
"signature_version": "v1"
}
]