A race condition was found in the Linux kernels implementation of the floppy disk drive controller driver software. The impact of this issue is lessened by the fact that the default permissions on the floppy device (/dev/fd0) are restricted to root. If the permissions on the device have changed the impact changes greatly. In the default configuration root (or equivalent) permissions are required to attack this flaw.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-20261.json"
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "299019088260108098934610344810687240054",
"length": 336.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "get_floppy_geometry",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-17dfa0cc"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "221795945364418887583899595050800816800",
"length": 1692.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "set_geometry",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-26fbe3f6"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "299895208022067125740748245727024689142",
"length": 344.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "lock_fdc",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-59b31556"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "295620362784426325930619314413415577063",
"length": 587.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "do_format",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-62105da1"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "51352612897612350370888606854469166756",
"length": 3630.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "fd_locked_ioctl",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-7c1f598c"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"line_hashes": [
"92750892173226665726683563894541142000",
"195205645563010788845925129453561507095",
"32911701276526081151547941029964369462",
"233468111202470589391389346884530425107",
"327510223687590831298760395984632740987",
"146035342336941513585284749979283753425",
"229232175182546091425337872239616046956",
"255008121855206158113689998969160163334",
"268463952984859351779733766184935187750",
"334280846394316182737301638807271455330",
"46333486227814117417456977727588963699",
"60390547908809602177545045278457273097",
"110464157478358084659106632202928167167",
"179606801068330006328573373381716700912",
"187316946100383872275549682599369059410",
"226203483485560935530619922474511965261",
"89221572718898124077109501338168964503",
"71165299524534289822384480082385135172",
"258783509996393946340976485537193438451",
"72064302700297000833404457404454973457",
"13601713892112678336298856314956988542",
"231892753008980585107435381062301558471",
"69545586548094980213652149805283418814",
"37613025994532497499630511191367196762",
"71892652350938953569858077576892418108",
"158516965508164228477451663663473209842",
"90788831417292075891637180688737442103",
"101458250018149580300490726264623707232",
"171324798806018082019271094006346409518",
"208946075649079606519747874979538662889",
"295236876445676396463992595756727800950",
"204998644110007099828743874546392343433",
"145626114998872383208236721634081834541",
"259395361996198686986084571342054511053",
"237165109977658209941833712612778538294",
"279915057924099680794619121554761313029",
"83056131015864998566315161724543890181",
"267049986917730023666220978568537951172",
"324864270482499645793263174139961768335",
"22503586863309527431684555014996128541",
"38451380570056671397840220835534550734",
"4339388940028552132498122927379206106",
"17482848556442517037471157254753334414",
"279915057924099680794619121554761313029",
"34286580522070696598252057720504187381",
"73800037733936088457227523917229820291",
"99969438808270058663639544346137911086",
"51447782662965836563467663886710711847",
"47257437789602930362311731567341606625",
"208152027659877614236198330046608698668",
"106739912788300454908957945930129098088",
"255106608768158691225688841507635647529",
"3532731873291878086902279334869703667",
"29521937546023587427360246986437782307",
"160202604547174873337705560603409941478",
"66650687451450876247198519738029602905",
"212550996262393574775815533965894833050",
"271839508242903997337712744463206066222",
"63961883964876982865363493235908842344",
"203981130852740451412444554209499355441"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-8dbe6fe5"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "336776477084820850939112037310270333491",
"length": 607.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "floppy_check_events",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-927c6f3d"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "232579945900204592081631952424953223040",
"length": 1081.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "floppy_revalidate",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-aecd1227"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@a0c80efe5956ccce9fe7ae5c78542578c07bc20a",
"digest": {
"function_hash": "155811647202940214844718497467540033705",
"length": 335.0
},
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "user_reset_fdc",
"file": "drivers/block/floppy.c"
},
"id": "CVE-2021-20261-fbf976c8"
}
]