Skip to contentSkip to conversation

...no subject...

DISCUSSION Frodo Looijaard 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · [email protected] wrote:

hi frodo,
i coudnt reach pelican,

True. I have had problems too.

Try [email protected] for now (I've cc-ed this).

Quoted 33 lines

<[email protected]>... Deferred: Connection timed out with pelican.tk.uni-linz.ac.at.

because you are mentioned as i2c maintainer this is of interessed for you also.

walter

Hi,
i was looking into the i2c code and found that some
sprintf() statement simply print without any
range restictions.
I dont thing this is a security problem but an buffer overflow is basicly possible. e.g.
/* from i2c-core.c */
if (i2cproc_initialized) {
char name[8];
struct proc_dir_entry *proc_entry;

-> sprintf(name,"i2c-%d", i);

In this example i=1..I2C_ADAP_MAX what is now 16 but sprintf(name,"i2c-%02d", i); is a simple solution that secures agains any accidentle overflow.

hope that helps,
walter

ps: if you like i can send a patch

Signature · 4 lines
Frodo Looijaard <[email protected]>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.
#1 lore raw

...no subject... (fwd)

----- Forwarded message from [email protected] -----

Received: by morannon.frodo.local (8.11.3/8.11.3) id h0R8P5q21120 ; Mon, 27 Jan 2003 09:25:05 +0100
Return-path: <[email protected]>
Received: from pop3.dds.nl [213.196.1.204]

	by localhost with POP3 (fetchmail-6.2.0)
	for frodo@localhost (single-drop); Mon, 27 Jan 2003 09:25:05 +0100 (CET)
Received: (qmail-ldap/ctrl 17266 invoked from network); 27 Jan 2003 08:14:36 -0000
Received: from ws-han1.win-ip.dfn.de ([193.174.75.150]) (envelope-sender <[email protected]>)
	         by dds.nl (qmail-ldap-1.03) with SMTP
	         for <[email protected]>; 27 Jan 2003 08:14:36 -0000
Received: from mail.bfs.de ([194.94.69.67])
	by ws-han1.win-ip.dfn.de (8.12.1/8.12.1) with ESMTP id h0R8EZws005931
	for <[email protected]>; Mon, 27 Jan 2003 09:14:35 +0100 (MET)
Received: from localhost (localhost [127.0.0.1])
	by mail.bfs.de (BfS Mail Relay) with ESMTP id AE065296FC
	for <[email protected]>; Mon, 27 Jan 2003 09:14:34 +0100 (CET)
Received: from apz.bfs (apz.bfs [192.168.0.1])
	by mail.bfs.de (BfS Mail Relay) with ESMTP id 2757A296F7
	for <[email protected]>; Mon, 27 Jan 2003 09:14:34 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by apz.bfs (BfS Mail Hub) with ESMTP id BB64F4917
	for <[email protected]>; Mon, 27 Jan 2003 09:15:13 +0100 (CET)
Received: from SZKOM.BFS.DE (unknown [193.174.230.136])
	by apz.bfs (BfS Mail Hub) with SMTP id 34BC5467F
	for <[email protected]>; Mon, 27 Jan 2003 09:15:13 +0100 (CET)

Received: by SZKOM.BFS.DE with VINES-ISMTP; Mon, 27 Jan 2003 9:14:57 +0100
Date: Mon, 27 Jan 2003 9:15:21 +0100
Message-ID: <[email protected]>
X-Priority: 3 (Normal)
To: <[email protected]>
From: <[email protected]> (Walter Harms)
Reply-To: <[email protected]>
Errors-To: <[email protected]>
Subject: Re: Re: ...no subject...
X-Incognito-SN: 25185
X-Incognito-Version: 5.1.0.84
X-Virus-Scanned: by BfS Mail Hub
X-Virus-Scanned: by BfS Mail Relay
X-Loop-Procmail: PreventLoop

hi,
perhaps you should post that to the MAINTAINES maintainer too. the www is also not reachable and your address is the only working one.

just an idea,

walter

- - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
From: Frodo Looijaard <[email protected]>
Subject: Re: ...no subject...
Date: 01/26/03 16:40

Quoted 2 lines · [email protected] wrote:

hi frodo,
i coudnt reach pelican,

True. I have had problems too.

Try [email protected] for now (I've cc-ed this).

Quoted 33 lines

<[email protected]>... Deferred: Connection timed out with pelican.tk.uni-linz.ac.at.

because you are mentioned as i2c maintainer this is of interessed for you also.

walter

Hi,
i was looking into the i2c code and found that some
sprintf() statement simply print without any
range restictions.
I dont thing this is a security problem but an buffer overflow is basicly possible. e.g.
/* from i2c-core.c */
if (i2cproc_initialized) {
char name[8];
struct proc_dir_entry *proc_entry;

-> sprintf(name,"i2c-%d", i);

In this example i=1..I2C_ADAP_MAX what is now 16 but sprintf(name,"i2c-%02d", i); is a simple solution that secures agains any accidentle overflow.

hope that helps,
walter

ps: if you like i can send a patch

Signature · 12 lines
Frodo Looijaard <[email protected]>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.

----- End of forwarded message from [email protected] -----

-- 
Frodo Looijaard <[email protected]>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.
#2 lore raw

...no subject... (fwd)

In reply to Frodo Looijaard

Ah, yeah. Hey Kyosti, are you our official kernel patch submitter? The MAINTAINERS document needs some tweaks:

Frodo's name/address needs to be replaced with Mark's. (Use [email protected] for his address)

And, match I2C maintainer info with Sensors. (mailing list and web site are wrong last time I checked)

Oh, and if you want to be an official patch /receiver/ you can replace my name and address with yours.

Phil

Quoted 70 lines · Frodo Looijaard

hi,
perhaps you should post that to the MAINTAINES maintainer too. the www is also not reachable and your address is the only working one.

just an idea,

walter

- - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
From: Frodo Looijaard <[email protected]>
Subject: Re: ...no subject...
Date: 01/26/03 16:40

Quoted 4 lines · [email protected] wrote:

hi frodo,
i coudnt reach pelican,

True. I have had problems too.

Try [email protected] for now (I've cc-ed this).

Quoted 35 lines

<[email protected]>... Deferred: Connection timed out with pelican.tk.uni-linz.ac.at.

because you are mentioned as i2c maintainer this is of interessed for you also.

walter

Hi,
i was looking into the i2c code and found that some
sprintf() statement simply print without any
range restictions.
I dont thing this is a security problem but an buffer overflow is basicly possible. e.g.
/* from i2c-core.c */
if (i2cproc_initialized) {
char name[8];
struct proc_dir_entry *proc_entry;

-> sprintf(name,"i2c-%d", i);

In this example i=1..I2C_ADAP_MAX what is now 16 but sprintf(name,"i2c-%02d", i); is a simple solution that secures agains any accidentle overflow.

hope that helps,
walter

ps: if you like i can send a patch