{"id":"CVE-2026-131872","summary":"SOIL2 before 1.4.2 NULL Pointer Dereference in DDS, PVR and PKM Loaders","details":"SOIL2 before 1.4.2 contains a NULL pointer dereference vulnerability in its DDS, PVR and PKM image loaders that write results through unchecked caller-supplied output pointers. Attackers can supply a valid DDS, PVR or PKM file to applications passing NULL output pointers to SOIL_load_image or stbi_info, causing a crash.","modified":"2026-11-18T07:04:29.901947128Z","published":"2026-11-18T02:13:36.117Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131872.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-476"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131872.json"},{"type":"PACKAGE","url":"https://github.com/SpartanJ/SOIL2"},{"type":"FIX","url":"https://github.com/SpartanJ/SOIL2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3"},{"type":"ADVISORY","url":"https://github.com/SpartanJ/SOIL2/releases/tag/1.4.2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131872"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/soil2-before-1.4.2-null-pointer-dereference-in-dds-pvr-and-pkm-loaders"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/spartanj/soil2","events":[{"introduced":"0"},{"fixed":"18c62dfe47ef706f74f1b9791e0155d7debc245d"},{"fixed":"6bee70c06ba121d8f618c80852f5453f60c9a8c3"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"1.4.2"}]},{"range":[{"fixed":"6bee70c06ba121d8f618c80852f5453f60c9a8c3"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"1.4.2","range":[{"fixed":"18c62dfe47ef706f74f1b9791e0155d7debc245d"}]}]}}],"versions":["1.4.1","1.4.0","1.3.0","release-1.20","release-1.11","release-1.10","release-1.09","release-1.08","release-1.07"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-131872.json","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"function":"SOIL_load_OGL_cubemap","file":"src/SOIL2/SOIL2.c"},"deprecated":false,"digest":{"function_hash":"119739583277973027230619725292009183239","length":2788},"id":"CVE-2026-131872-0eeb79fc"},{"id":"CVE-2026-131872-0ff2c82e","signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/stbi_pvr_c.h"},"deprecated":false,"digest":{"line_hashes":["91356088879552765919207359875472717192","59256822090311900579629404803765856290","318488120543725908475296933257327326269","225486047504600439218334023699757005219","87293907185438892572587162158315739940","20565415558162397571606639572069894171","57268739348083486506249106186244029861","88452614829807415789478932113491007575","51794874919868129348973575834223086687","164468679040205850555243509324582281390","2005270507151378649777666319787009374"],"threshold":0.9}},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["217069941687406000033308610561918849035","251631417716111752760022878180106522328","321862861167047031399576862847070824501","228434230377517338245824702240677014924","232103275554740338276547965010918051209","300391984014708006875282162431051426021","60379275778668980723686131898741060555","215646882696346631896877701046418217078"]},"id":"CVE-2026-131872-1897e755","signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"file":"src/SOIL2/stbi_DDS_c.h"}},{"id":"CVE-2026-131872-1d1b2433","signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"function":"stbi__dds_load","file":"src/SOIL2/stbi_DDS_c.h"},"deprecated":false,"digest":{"function_hash":"179923323823752530571445055787364855327","length":4373}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/stbi_DDS_c.h","function":"stbi__dds_load"},"deprecated":false,"digest":{"function_hash":"96820069631713320227769512025841436964","length":4982},"id":"CVE-2026-131872-24858cb7"},{"source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"function":"stbi__pvr_load","file":"src/SOIL2/stbi_pvr_c.h"},"deprecated":false,"digest":{"function_hash":"334739811370029540287457879445528029791","length":1640},"id":"CVE-2026-131872-44092ff9","signature_type":"Function","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"file":"src/SOIL2/stbi_DDS_c.h","function":"stbi__dds_info"},"deprecated":false,"digest":{"length":1191,"function_hash":"314688582634344317409491560037030477006"},"id":"CVE-2026-131872-4ada5b1b","signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/stbi_qoi_c.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["151130580077810217742618370507717536244","139049914035320202227587636726046401730","222655023393691354637959051106143710311","320528200768069417294457635997569285094"]},"id":"CVE-2026-131872-5275ffbb","signature_type":"Line"},{"digest":{"function_hash":"236294862108487033039879761895470025429","length":1154},"id":"CVE-2026-131872-66446652","signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"file":"src/SOIL2/stbi_pvr_c.h","function":"stbi__pvr_info"},"deprecated":false},{"id":"CVE-2026-131872-6f34bd74","signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"function":"stbi__pkm_load","file":"src/SOIL2/stbi_pkm_c.h"},"deprecated":false,"digest":{"length":1820,"function_hash":"300179143241851143388132100825210337187"}},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"file":"src/SOIL2/stbi_pkm_c.h"},"deprecated":false,"digest":{"line_hashes":["2878314909673414296573094721836981596","13017705130246153403077637458185068109","183806248593714099244660369042313846838","57399243875090711304065411367521672434","105031843103308547868741908497428112966","208614543597912879159697060513006258710","311893064207016773729029642958864349102","55581500268925019009962227668197812572"],"threshold":0.9},"id":"CVE-2026-131872-77ce4560"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/stbi_qoi_c.h","function":"stbi__qoi_load"},"deprecated":false,"digest":{"length":2822,"function_hash":"232802953887197435594184124127114888963"},"id":"CVE-2026-131872-805c67ff"},{"target":{"function":"SOIL_load_OGL_single_cubemap","file":"src/SOIL2/SOIL2.c"},"deprecated":false,"digest":{"function_hash":"297131156791511292144370558882774009347","length":1464},"id":"CVE-2026-131872-93307947","signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d"},{"source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/stbi_pvr_c.h","function":"stbi__pvr_load"},"deprecated":false,"digest":{"function_hash":"39587209029753689782793419279128931043","length":2496},"id":"CVE-2026-131872-9f54d1a3","signature_type":"Function","signature_version":"v1"},{"digest":{"length":412,"function_hash":"114617831808268696078412379798066472164"},"id":"CVE-2026-131872-aa60e135","signature_type":"Function","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"function":"stbi__pkm_info","file":"src/SOIL2/stbi_pkm_c.h"},"deprecated":false},{"deprecated":false,"digest":{"line_hashes":["61096322285816711949539218723647419242","258985678104686809080667448102896611955","6475653868636360063084821661939605216","318561431121341171523643619955244689414","175537419285177644722526123587246283417","216591163666693220329770283396083597767","45218928341584010828950879490987501638","28407359405943591188483947674765040939","309210875071307298466901918574891467249","261409058500887779943370422533741053148","132916615263523734964118968340903273382","178846870234123776977267925545329086654","92386897320322568290247815710389308142","201100548878386678269646846860707862066","321760449018916343928991122338266154971","151590924389533590537803286654870240070","134261092879053579939235964016525486304","19546153949651053334907075710064758599","162933969269873748330639845754101821333","151590924389533590537803286654870240070","134261092879053579939235964016525486304","19546153949651053334907075710064758599","332859798383143115607759759910247232656","310421477402180799124901715272374924378","48438313290865672846982572580210715962","140262512232708321057529935838732386164","205288094049316206800013752900561806057","310421477402180799124901715272374924378","48438313290865672846982572580210715962","140262512232708321057529935838732386164","205288094049316206800013752900561806057","2124116865083856289634080688247121444","1442575060560139783462694383738597639","62886198489904720892005931029218795177","339759600075679527149105003002323464310","257634188170504217289669153123385701990","206265535554229118175147814330740531936","127625152327868685131658238695265922792","208877140258749194510419320629473225584","230288597042266616060647418427051501699","11883094638046141194997690482563202543","291309659673973700750967901359917019895","224404415349995756641816371346781266734","22967685310626132866377761626871229710","9682331716146881125663424335016029912","251789514091556497228984957026108686389","30645702156346085681301436575929149818","76785758414870757639061659869724127025","6598529906324605548473399574373660617","334720896837739048577334657360576941017","259154335477250538970931335095184822387","28125822746338162563598543363640720549","269894234033425126080662642632017389440","8440704668412830463280671644004741857","186908330395260441263045645619533110618","188432119559641566669535442968257751158","269882506609150389562150825549638701710","61299475354753079534752154382224592502","165920022314418222322617930798715909240","178606006062550028938234005210930442623","264543249487371937886926396642444970079","310652963454942441693229915460630143844","250451861423378103352521922225268414122","292594722891908607269174993197209714263","86200992374309622060228713972242925381","216237358201548280727187813716295530583","241173726746027375121355243347989083355","313424429147245756942349015664734198145","46801580966152465331707023028922189259","274760038288448884930651332648620412110","303467600826345726637236292277495185863","149019977267754233138585607891308232293","126102701552323477362741797011789637802","30214495168000011747987036707339314973","290602845693708599010777339839657755924","218764950546261252785256737568072780824","79987042369297386810611498620685897263","168731680276680545643307330180948938400","157431291697033175853786371620432800093","58979506222329196008718696909262899361","202341758204470836742394045697384326193","28048807887886486418333605647667216686","296771163702943731100962828052813152719","258084440794107344040251097464604152148","111910920128144888526532088109719530904"],"threshold":0.9},"id":"CVE-2026-131872-bdf05afd","signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/SOIL2.c"}},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["284773400935224477585812956601805945449","140766138137016003548431377854622362937","292207285286930454920163735005287473667","107804242148451764315030334175703265643","263124688167034747580831751491368289321","105490299912699880142485352610172071685","181435345207414708423815930277187638391","238518839200133940933516714245835958457","27082569909046408616256476489025554016","28357916819579493396457500870183606588","317775772764389264478574012057545196157","197488801440943634977089909691720994686","84711538753287333469464110878468730919","201893792049989598832830544783612889005","328993508933003839326208476960252222463","3641567714646985316793559059627009385"]},"id":"CVE-2026-131872-ce6d9792","signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/image_DXT.c"}},{"signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/SOIL2.c","function":"SOIL_upload_image_array_to_gl"},"deprecated":false,"digest":{"function_hash":"219536236997123837812107663664148559682","length":576},"id":"CVE-2026-131872-d2b4924a","signature_type":"Function"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/6bee70c06ba121d8f618c80852f5453f60c9a8c3","target":{"file":"src/SOIL2/stbi_pvr_c.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["48213476916316046174863774195254211991","50979944262026844657524053559186081168","90307794575117575362817078498200220772","230827543028711480110033136434781844952","22990719468021765911233963363948370234","286603028184217535481732370623277981974","121589225032279293687857800239562993542","243820265214221030489627697089811764639"]},"id":"CVE-2026-131872-e9819c9f"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/stbi_DDS_c.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["156418044820834994132850949128372087103","171574505203613452106930523409919772873","117412923607426184129155727033754816083","137322497039988864094082533601439350894","24868071439782059784037744602851379956","36417158324752936592639672156076674246","225122379859056316431395595278189854599","257279402225176198759438233487552089620","8283025705588891476387213621671008699","128360545390521109118170908203698121734","4898749367391839606619796008061326936","315870288611978348423635696760359299154","314629224053351072255802322671185221306","82934240834752465932411177378332880996","132588004165759117592221759228677606347"]},"id":"CVE-2026-131872-e9a491e9"},{"source":"https://github.com/spartanj/soil2/commit/18c62dfe47ef706f74f1b9791e0155d7debc245d","target":{"file":"src/SOIL2/SOIL2.c","function":"SOIL_load_OGL_HDR_texture"},"deprecated":false,"digest":{"function_hash":"274170976911070818495570952918193977092","length":843},"id":"CVE-2026-131872-f432a90c","signature_type":"Function","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-18T07:04:29Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}