On CBS.com: Six show girls attacked
BNET Business Network:
BNET
TechRepublic
ZDNet

By Robert Lemos
Posted on ZDNet News: Dec 14, 2004 1:57:00 AM

The Linux operating system has many times fewer bugs than typical commercial software, according to an upcoming report.

The conclusion is the result of a four-year research project conducted by code-analysis company Coverity, which plans to release its report on Tuesday. The project found 985 bugs in the 5.7 million lines of code that make up the latest version of the Linux core operating system, or kernel. A typical commercial program of similar size usually has more than 5,000 flaws or defects, according to data from Carnegie Mellon University.

"Linux is a very good system in terms of bug density," said Seth Hallem, CEO of Coverity, a San Francisco company that makes flaw-detection tools for software written in C and C++ programming languages.

Code-analysis tools typically use software-design principles to analyze a program's source code and flag any possible problems. Microsoft already uses such tools widely in its internal development, and many compilers are starting to include rudimentary versions of the programs as well. The tools are also being used to tame the wild coding prevalent around the Web.

Though Coverity does not have any data about the relative frequency of flaws in Microsoft's Windows operating system, the latest data will likely feed the debate between the various proponents of Linux, Mac OS X and Windows over which operating system is more secure.

A recent report, for example, found that Red Hat Linux had fewer critical flaws than Microsoft Windows. Another research paper, prepared by Forrester Research and hosted on Microsoft's Web site, favored Windows. Yet another code analysis firm, however, last year analyzed the core networking code used in Linux and found few flaws.

Coverity has not analyzed the source code to Microsoft Windows because the company does not have access to the source code, Hallem said. Apple Computer's Mac OS X has a great deal of proprietary programming, but the core of the operating system is based on BSD, an open-source operating system similar to Linux.

Hallem stressed that the research on Linux--specifically, version 2.6 of the kernel--indicated that the open-source development process produced a secure operating system.

"There are other public reports that describe the bug density of Windows, and I would say that Linux is comparable or better than Windows," he said.

A representative of Microsoft could not immediately comment on the Coverity study.

The research suggests that the Linux kernel scored better than run-of-the-mill commercial code. Proprietary software, in general, has 1 to 7 flaws per thousand lines of code, according to an April report from the National Cybersecurity Partnership's Working Group on the Software Lifecycle, which cited an analysis of development methods by the Software Engineering Institute at Carnegie Mellon University.

For a 5.7 million-line program, such as version 2.6 of the Linux kernel, that roughly adds up to between 5,700 and 40,000 flaws.

Microsoft uses analysis tools similar to those in Coverity's study to vet its Windows code. One tool, known as PREfast, runs on each developer's workstation to check code for simple problems. The other tool, PREfix, is run every night on the Windows source code to catch more complex issues.

Coverity's Hallem acknowledged that by running similar tools to its own, Microsoft likely had reduced the number of defects in Windows.

Coverity plans to provide regular bug analysis reports on Linux and make a summary of the results available to the Linux developer community.

  • Talkback
  • Most Recent of 329 Talkback(s)
MICROSOFT is full of fools!
You need to be a genius to use linux. Sorry about that. (Read the rest)
Posted by: theroyala@... Posted on: 08/30/05 You are currently: Logged In | Log out
(NT)I'm curious how the BSDs would stack up toadlife   | 12/13/04
Better (NT) Loverock Davidson   | 12/13/04
Entirely possible alterego_z   | 12/14/04
re: Entirely possible cbradshaw@...   | 12/14/04
Sepends on the security you are using. B.O.F.H.   | 12/14/04
Darwin rkadowns   | 12/14/04
What makes it a BSD.... Still Lynn   | 12/14/04
Exactly right. The King's Servant   | 12/15/04
One of the main differences is... B.O.F.H.   | 12/15/04
RIP BSDi Still Lynn   | 12/14/04
Details, details, details.... B.O.F.H.   | 12/14/04
Way ahead of you here toadlife   | 12/14/04
FreeBSD 4.7 FreeBSD   | 12/14/04
Fact is Linux has fewer flaws found pa2004   | 12/13/04
They analyzed the code Richard Flude   | 12/13/04
We forgive you. Xunil_Sierutuf   | 12/13/04
No not true ahkjmu@...   | 12/13/04
RE: No not true ajapierce   | 12/13/04
thousands? alterego_z   | 12/14/04
HEY!!! wimbo_z   | 12/14/04
He's talking servers, not browsers, and quit pretending to be No_Ax (nt) CobraA1   | 12/13/04
Don't be messing with the Tooth Fairy (very mean and Laff   | 12/14/04
Message has been deleted. d_jedi   | 12/14/04
You forgot to mention what IS true.... Still Lynn   | 12/14/04
I pass bugmenotznet   | 12/14/04
I tend to agree... nomorems   | 12/14/04
That's not true Bllod_Omen   | 12/14/04
Running the 'net dingle-berry   | 12/14/04
Oh, really? Chad_z   | 12/14/04
Thanks jbencivengo@...   | 12/14/04
Oh Really? CodeBubba   | 12/14/04
25 years on ?? OS johnlb2002   | 12/14/04
Number of users in not the ONLY factor. Number of Laff   | 12/14/04
Do me a favor. IT Scion   | 12/14/04
I use a Mac (have since they came out) and so I am Laff   | 12/14/04
Like to have... wizzzer   | 12/14/04
Usually I purchased USED Mac's. However even then Laff   | 12/14/04
RE: Mac's held onto their value JakAttak   | 12/14/04
Most PC buyers do not want to buy a $3000.00 system... The King's Servant   | 12/17/04
Oh and I have to ask...Are you a Laff   | 12/14/04
I'd like to have... tic swayback   | 12/14/04
I would like to have rkadowns   | 12/15/04
Ever heard the expression? lengua99   | 12/18/04
like to have? andypiesse@...   | 12/18/04
Since you are using a MAC htotten   | 12/14/04
Hey as long at it is as EASY to use as the Mac..what Laff   | 12/14/04
Can't argure with that htotten   | 12/14/04
No one can argue with a good Laff....:) Laff   | 12/14/04
I've heard these rumors too.... Still Lynn   | 12/14/04
Funny Flame llanitedave   | 12/14/04
Sorry, wrong company tic swayback   | 12/14/04
Use some common sense voska   | 12/14/04
Sorry, doesn't wash johnlb2002   | 12/14/04
You illustrate my point perfectly voska   | 12/14/04
That works for me.... Still Lynn   | 12/14/04
the article is talking about... doh123   | 12/14/04
You misunderstand the metrics. escoles@...   | 12/14/04
You misunderstood G Fedorchuk   | 12/14/04
By your reasoning, the Ford Pinto is better than a BMW johnlb2002   | 12/14/04
It has fewer flaws bugs FilledOut   | 12/15/04
Microsoft not hiding anything ahkjmu@...   | 12/13/04
No Ax "U da Man" BXLE   | 12/14/04
For the record PA-ITGuy   | 12/14/04
Well we could see that. gordon@...   | 12/14/04
re: No Ax "U da Man" richdave   | 12/14/04
The planet of the sock puppets. Still Lynn   | 12/14/04
The point is lengua99   | 12/18/04
re: Microsoft not hiding anything richdave   | 12/14/04
How old are you? About 12 or 13 bugmenotznet   | 12/14/04
Sorry, my shoes are far to big for you to fill. No_Ax_to_Grind   | 12/14/04
HAHAHAHAHAHAHA htotten   | 12/14/04
Imitatioin is suppose to be the sincerest form of flattery Laff   | 12/14/04
That is one view I suppose. No_Ax_to_Grind   | 12/14/04
re: That is one view I suppose. Still Lynn   | 12/14/04
My apolgies... Still Lynn   | 12/14/04
Maybe you have another that aspires to be like you here? B.O.F.H.   | 12/14/04
Hurry!!! SC-man   | 12/16/04
Not to mention No_Axe_To_Grind and no_ax_to_grind The King's Servant   | 12/17/04
re: Sorry, my shoes are far to big for you to fill. richdave   | 12/17/04
Get a real ID htotten   | 12/14/04
Simple security measure Nigel Johnstone   | 12/14/04
After reading the study I cant see why to keep MS crocd   | 12/14/04
re: After reading the study I cant see why to keep MS richdave   | 12/14/04
Re: After reading the study I cant see why to keep MS mc566   | 12/14/04
MS-sponsered studies? [NT] Omch'Ar   | 12/14/04
Windows XP is commercial software! The King's Servant   | 12/17/04
linux/microsoft blind1   | 12/14/04
Not surprised Kamikaze_Ohka   | 12/14/04
Linux has security problems too? Prognosticator   | 12/14/04
How do you do it? Chad_z   | 12/14/04
Experience Prognosticator   | 12/14/04
re: Experience richdave   | 12/14/04
I for one NEVER said that Linux was 100% secure.. Laff   | 12/14/04
You just did! Spoon Jabber   | 12/15/04
Back in the day that tatic was called "Yellow Journalisim" Laff   | 12/15/04
It IS a shame Spoon Jabber   | 12/15/04
Perhaps it's an economic statement on the quaility Laff   | 12/15/04
This isn't about security murdock@...   | 12/14/04
Right. Yen_z   | 12/14/04
Awesome, hilarious... php_developer   | 12/14/04
Re: Right Mack DaNife   | 12/14/04
Re: Right - great Post that goes to 90% of this forum. computer_man   | 12/14/04
LOL! Humorous and well-written. Except... Linux_Developer   | 12/14/04
Oops! Linux_Developer   | 12/14/04
Clarification. Yen_z   | 12/15/04
OK, now I think I get it. Linux_Developer   | 12/15/04
10.0! Mike Cox has a tough act to follow. The King's Servant   | 12/17/04
Straw man alert! Still Lynn   | 12/14/04
Some comments... PA-ITGuy   | 12/14/04
Bugs vs. Security Flaws Kamikaze_Ohka   | 12/14/04
re:Bugs vs. Security Flaws dvm   | 12/14/04
this is what we like to call FUD as well.. Monkey_MCSE   | 12/14/04
Not True nikoli   | 12/14/04
RE:





TalkBack: Reply to message


RE: Not True
 SC-man   | 12/16/04
WTH is with the subject line? SC-man   | 12/16/04
this is what we like to call FUD as well.. dvm   | 12/15/04
re: Bugs vs. Security Flaws richdave   | 12/14/04
re: isn't a securitly flaw a 'bug'? ladyscifi   | 12/16/04
I've Had Suse 9.1 Crash Plenty nikoli   | 12/14/04
really? doh123   | 12/14/04
I'd also like to add... IT Scion   | 12/14/04
Good point PA-ITGuy   | 12/14/04
The result of 4 years of study & bug fixing bwerther@...   | 12/14/04
effectiveness of tools... dingle-berry   | 12/14/04
So if MS allowed johnlb2002   | 12/14/04
So the real title to the article should've been- PA-ITGuy   | 12/14/04
From the editing room floor to you! Still Lynn   | 12/14/04
Thanks for filling in the blanks (NT) PA-ITGuy   | 12/14/04
re: Some comments... richdave   | 12/17/04
If I had a Dell I would not worry, Squawkbox   | 12/14/04
I would. rbochan   | 12/14/04
Look at the link the man provided bugmenotznet   | 12/14/04
That link... rbochan   | 12/14/04
LOL IT Scion   | 12/14/04
LOL x2 SC-man   | 12/16/04
Linux less buggy CodeBubba   | 12/14/04
You are wrong badagentx   | 12/14/04
less functionality?? what you talkin 'bout Willis? Monkey_MCSE   | 12/14/04
USB Generic Mouse Nonfunctional gsquared   | 12/14/04
Switched back because of a mouse? el1jones   | 12/14/04
Well imagine if the guy plugin that mouse is the dumb guy user. computer_man   | 12/14/04
Plug and Pray Yagotta B. Kidding   | 12/14/04
Too bad you gave up so quickly....You might of learned something LazLong   | 12/14/04
finally someone who thinks like me jpbochi   | 12/14/04
Simple ways Yagotta B. Kidding   | 12/14/04
You're not alone PA-ITGuy   | 12/14/04
Right click? Spoon Jabber   | 12/15/04
Ummmmm.... Still Lynn   | 12/14/04
re: USB Generic Mouse Nonfunctional richdave   | 12/17/04
less functionality?? what you talkin 'bout Willis? CodeBubba   | 12/14/04
Linux Issues LGLisle   | 12/17/04
re: Linux Issues richdave   | 12/17/04
But it is a Linux Issue LGLisle   | 12/18/04
Good point CodeBubba jgoodman_z   | 12/14/04
I worked at Lexmark... dingle-berry   | 12/14/04
Old laser Lexmark Still Lynn   | 12/14/04
Drivers? johnlb2002   | 12/14/04
re:Linux less buggy richdave   | 12/14/04
Who Cares Crockdaddy   | 12/14/04
Honestly, does it matter? CodeBubba   | 12/14/04
linux is under-used and hence under-tested ADee   | 12/14/04
"what is it tell you"... liberalenextrema@...   | 12/14/04
The need a little more info... dvm   | 12/14/04
There'll never be any bug free software jmhalloy_z   | 12/14/04
Oh Now Here's A Suprise mcrute   | 12/14/04
Re-read the article PA-ITGuy   | 12/14/04
re:Re-read the article richdave   | 12/14/04
Windows is a *specific* commercial program. Zogg   | 12/14/04
Name one commercial program that isn't a "specific" commercial program. The King's Servant   | 12/17/04
Bias Article from the editor Curtis@...   | 12/14/04
All ZDNet articles are biased in Linux favor. No_Ax_to_Grind   | 12/14/04
What are you talking about? S.Howard-Sarin  ZDNet | 12/14/04
Bitty, seems to me you've just been "spanked" (NT) none none   | 12/14/04
"Like a 4 year old" Spoon Jabber   | 12/15/04
Poster should read carefully:Coverity pays their own bills John Le'Brecage   | 12/14/04
Linux vs. Windows olenavy   | 12/14/04
LINUX is full of flaws! johntaylor49   | 12/14/04
Linux flaws fixed quickly CobraA1   | 12/14/04
dont see any Linux ones... kokuryu   | 12/14/04
Top 20 vulnerabilities bobjones68@...   | 12/14/04
It is true michael-t   | 12/14/04
Nothing perfect grainofsalt   | 12/14/04
I don't know michael-t   | 12/14/04
different goals = different results grainofsalt   | 01/17/05
You need to find a better link AmusedAtItAll   | 12/14/04
top Five when search Linux The King's Servant   | 12/17/04
MICROSOFT is full of fools! theroyala@...   | 08/30/05
Only true because most computers have MS gtemedtk1@...   | 12/14/04
Almost right. sgk284   | 12/14/04
I am a "home user", ok! gtemedtk1@...   | 12/16/04
I should warn you about those malicious coders... The King's Servant   | 12/17/04
Some conclusions jorwell   | 12/14/04
Pseudo-Science DonPMitchell@...   | 12/14/04
their "magic" numb