Something like this should do it:
$csvp = fopen('data.csv', 'r');
while (($data = fgetcsv($csvp, 512, ',')) !== false) {
$query = "UPDATE my_table SET remaining = " . $data[3] . " WHERE product = " . $data[0];
msql_query($query);
}
fclose($handle);
This is supposing that the product id is the first field ([0]) in each csv line and in stock is the fourth ([3]), and that 512 will cover the longest line. Adjust appropriately, of course.
If the file and database are large and this method takes too much time, you'll want to check out using a temp table, and/or joins, and/or "INSERT DATA INFILE".